Home » Source Code » Thread simulator NetBeans

Thread simulator NetBeans

richardleo
2015-11-10 14:05:42
The author
View(s):
Download(s): 0
Point (s): 1 
Category Category:
MutithreadMutithread JavaJava

Description

Application background

This project simulates threads in java with interface. It is based on the producer-consumer algorithm. It also uses buffers to store the data.

Key Technology

A program or process can contain multiple threads that execute instructions according to program code. Like multiple processes that can run on one computer, multiple threads appear to be doing their work in parallel. Implemented on a multi-processor machine, they actually can work in parallel. Unlike processes, threads share the same address space; that is, they can read and write the same variables and data structures.

When you're writing multithreaded programs, you must take great care that no one thread disturbs the work of any other thread. You can liken this approach to an office where the workers function independently and in parallel except when they need to use shared office resources or communicate with one another. One worker can speak to another worker only if the other worker is "listening" and they both speak the same language. Additionally, a worker can't use a copy machine until it is free and in a useable state (no half-completed copy jobs, paper jams, and so on). As we work through this article, you'll see how you can get threads to coordinate and cooperate in a Java program much like workers in a well-behaved organization.

Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
built-jar.properties99.00 B18-10-15|21:52
.netbeans_automatic_build0.00 B18-10-15|21:53
.netbeans_update_resources0.00 B18-10-15|21:53
Buffer.class1.63 kB18-10-15|21:53
chiquitoA.png21.67 kB18-10-15|22:24
chiquitoH.png15.03 kB18-10-15|22:21
chiquitoL.png12.97 kB18-10-15|22:26
chiquitorta.png61.60 kB18-10-15|22:34
Consumidor.class4.86 kB18-10-15|21:53
descarga0.00 B98%|18-10-15
fondo.jpg12.19 kB18-10-15|22:56
FONDOCHOCO.jpg159.99 kB18-10-15|23:35
Interfaz$1.class713.00 B18-10-15|23:44
Interfaz$10.class715.00 B18-10-15|23:44
Interfaz$11.class748.00 B18-10-15|23:44
Interfaz$12.class716.00 B18-10-15|23:44
Interfaz$13.class748.00 B18-10-15|23:44
Interfaz$14.class748.00 B18-10-15|23:44
Interfaz$15.class748.00 B18-10-15|23:44
Interfaz$16.class748.00 B18-10-15|23:44
Interfaz$17.class748.00 B18-10-15|23:44
Interfaz$18.class531.00 B18-10-15|23:44
Interfaz$2.class745.00 B18-10-15|23:44
Interfaz$3.class713.00 B18-10-15|23:44
Interfaz$4.class745.00 B18-10-15|23:44
Interfaz$5.class713.00 B18-10-15|23:44
Interfaz$6.class745.00 B18-10-15|23:44
Interfaz$7.class745.00 B18-10-15|23:44
Interfaz$8.class713.00 B18-10-15|23:44
Interfaz$9.class745.00 B18-10-15|23:44
Interfaz.class28.75 kB18-10-15|23:44
Interfaz.form77.65 kB18-10-15|23:44
PantallaInicio$1.class787.00 B18-10-15|23:37
PantallaInicio$2.class553.00 B18-10-15|23:37
PantallaInicio.class4.35 kB18-10-15|23:37
PantallaInicio.form5.23 kB18-10-15|23:37
ProductorA.class1.93 kB18-10-15|21:53
ProductorH.class1.93 kB18-10-15|21:53
ProductorL.class1.93 kB18-10-15|21:53
TORTA.png37.69 kB18-10-15|22:35
TortaMet.class498.00 B18-10-15|23:36
TortasMet.txt19.00 B18-10-15|21:53
build.xml3.52 kB16-10-15|15:31
README.TXT1.29 kB18-10-15|21:52
TortaMet.jar57.71 kB18-10-15|21:52
manifest.mf85.00 B16-10-15|15:31
build-impl.xml77.46 kB16-10-15|15:31
genfiles.properties475.00 B16-10-15|15:31
private.properties114.00 B18-10-15|19:20
private.xml1.24 kB18-10-15|23:47
project.properties2.38 kB16-10-15|15:31
project.xml516.00 B16-10-15|15:31
Buffer.java1.92 kB18-10-15|19:25
chiquitoA.png21.67 kB18-10-15|22:24
chiquitoH.png15.03 kB18-10-15|22:21
chiquitoL.png12.97 kB18-10-15|22:25
chiquitorta.png61.60 kB18-10-15|22:34
Consumidor.java6.09 kB18-10-15|19:42
descarga0.00 B98%|18-10-15
fondo.jpg12.19 kB18-10-15|22:56
FONDOCHOCO.jpg159.99 kB18-10-15|23:35
Interfaz.form77.65 kB18-10-15|23:44
Interfaz.java60.74 kB18-10-15|23:44
PantallaInicio.form5.23 kB18-10-15|23:37
PantallaInicio.java4.76 kB18-10-15|23:37
ProductorA.java1.38 kB18-10-15|19:26
ProductorH.java1.37 kB18-10-15|19:26
ProductorL.java1.38 kB18-10-15|19:26
TORTA.png37.69 kB18-10-15|22:35
TortaMet.java548.00 B18-10-15|23:36
TortasMet.txt19.00 B18-10-15|16:24
tortamet0.00 B18-10-15|23:44
ap-source-output0.00 B18-10-15|21:52
classes0.00 B18-10-15|21:53
empty0.00 B18-10-15|21:52
generated-sources0.00 B18-10-15|21:52
private0.00 B16-10-15|15:46
tortamet0.00 B18-10-15|23:35
build0.00 B18-10-15|21:52
dist0.00 B18-10-15|21:52
nbproject0.00 B16-10-15|15:31
src0.00 B16-10-15|15:31
TortaMet0.00 B18-10-15|21:52
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

Thread simulator NetBeans (712.30 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D