BankSystem:由于约会多线程环境:开始的业务层单例是一个以时间换取空间的策略。先在业务多个用户登录,业务层处理存在排队现象现在业务层取消单例,让每个用户拥有独有的业务服务问题:1.一个账号多人请求登录,出现多个账号在线。 --dao层注册于登录前需要先判断user_pool while(uers.get(username)!= null)2.多个账号同时给一个账号转账时,会出现getMoney(),setMoney()的线程安全问题。-给改变ProperFiePo对象的钱值的都加同步锁,防止多线程

上传者: 42118056 | 上传时间: 2021-03-23 19:09:59 | 文件大小: 65KB | 文件类型: ZIP
BankSystem:由于约会多线程环境:开始的业务层单例是一个以时间换取空间的策略。先在业务多个用户登录,业务层处理存在排队现象现在业务层取消单例,让每个用户拥有独有的业务服务问题:1.一个账号多人请求登录,出现多个账号在线。 --dao层注册于登录前需要先判断user_pool while(uers.get(username)!= null)2.多个账号同时给一个账号转账时,会出现getMoney(),setMoney()的线程安全问题。-给改变ProperFiePo对象的钱值的都加同步锁,防止多线程操作-而用户名密码,因为用了user_pool控制,有且仅有一个相同的用户在线,所有不会有线程安全问题3.由于用户4.GUI接口的窗口关闭事件的监听,已经用户的一些误操作提示

文件下载

资源详情

[{"title":"( 44 个子文件 65KB ) BankSystem:由于约会多线程环境:开始的业务层单例是一个以时间换取空间的策略。先在业务多个用户登录,业务层处理存在排队现象现在业务层取消单例,让每个用户拥有独有的业务服务问题:1.一个账号多人请求登录,出现多个账号在线。 --dao层注册于登录前需要先判断user_pool while(uers.get(username)!= null)2.多个账号同时给一个账号转账时,会出现getMoney(),setMoney()的线程安全问题。-给改变ProperFiePo对象的钱值的都加同步锁,防止多线程","children":[{"title":"BankSystem-master","children":[{"title":"updata <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"bank1.2.iml <span style='color:#111;'> 423B </span>","children":null,"spread":false},{"title":"filedata","children":[{"title":"template.properties <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"logo.jpg <span style='color:#111;'> 13.28KB </span>","children":null,"spread":false},{"title":"register","children":[{"title":"yst.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"logo.jpg <span style='color:#111;'> 13.28KB </span>","children":null,"spread":false},{"title":"yq.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"yyy.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"filedata","children":[{"title":"bankconfig.xml <span style='color:#111;'> 556B </span>","children":null,"spread":false},{"title":"template.properties <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"logo.jpg <span style='color:#111;'> 13.28KB </span>","children":null,"spread":false},{"title":"register","children":[{"title":"yst.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"yq.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"yyy.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":"version","children":[{"title":"bank1.5 <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"com","children":[{"title":"cx","children":[{"title":"bank","children":[{"title":"model","children":[{"title":"MoneyBean.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"UserBean.java <span style='color:#111;'> 780B </span>","children":null,"spread":false}],"spread":true},{"title":"dao","children":[{"title":"ProperFilePo.java <span style='color:#111;'> 5.01KB </span>","children":null,"spread":false},{"title":"BankDaoFactory.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"BankDaoInterface.java <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"FileDaoImpl.java <span style='color:#111;'> 7.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"CMDException.java <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"InvalidDepositException.java <span style='color:#111;'> 926B </span>","children":null,"spread":false},{"title":"AccountOverDrawnException.java <span style='color:#111;'> 939B </span>","children":null,"spread":false},{"title":"BankSystemRegisterException.java <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"Dao.java <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"TransferException.java <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"MD5Util.java <span style='color:#111;'> 1016B </span>","children":null,"spread":false},{"title":"BankSystemLoginException.java <span style='color:#111;'> 565B </span>","children":null,"spread":false},{"title":"BankConfigure.java <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"BankSystem.java <span style='color:#111;'> 9.33KB </span>","children":null,"spread":false},{"title":"GULBankSystem.java <span style='color:#111;'> 16.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"manager","children":[{"title":"ManagerImpl.java <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"BankService.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"uiDesigner.xml <span style='color:#111;'> 8.59KB </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 4B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"profiles_settings.xml <span style='color:#111;'> 235B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bankconfig.xml <span style='color:#111;'> 556B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明