文件名称:ThreadSynchronization
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- che***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设计一个程序模拟一个银行帐户存钱的过程。程序中使用100个线程同时对一个银行帐户进行操作,每个线程每次向账户中存入1元。使用两个面板分别显示使用同步线程存放100次后的账户余额和不使用同步线程存放100次后的账户余额。-Design a program to simulate the process of saving money in a bank account. Program to use 100 threads simultaneously operate a bank account, each thread for each 1 yuan deposit to the account. The use of two panels that the use of simultaneous threads were placed 100 times after the account balance and do not use thread synchronization store 100 times after the account balance.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ThreadSynchronization\.classpath
.....................\.project
.....................\synchronization\Account.class
.....................\...............\Account.java
.....................\...............\DepositThread.class
.....................\...............\DepositThread.java
.....................\...............\TempAccount.class
.....................\...............\TempAccount.java
.....................\...............\ThreadTest$1.class
.....................\...............\ThreadTest$2.class
.....................\...............\ThreadTest.class
.....................\...............\ThreadTest.java
.....................\synchronization
ThreadSynchronization
.....................\.project
.....................\synchronization\Account.class
.....................\...............\Account.java
.....................\...............\DepositThread.class
.....................\...............\DepositThread.java
.....................\...............\TempAccount.class
.....................\...............\TempAccount.java
.....................\...............\ThreadTest$1.class
.....................\...............\ThreadTest$2.class
.....................\...............\ThreadTest.class
.....................\...............\ThreadTest.java
.....................\synchronization
ThreadSynchronization