





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Concurrency is the process of working on multipletasks at the same time.
Operating Systems supports concurrency heavily.
It is allowing computers to use resources moreeffectively.
A Thread is a program unit or process that is executedindependently of other processes
Thread can be considered a “light-weight” process.
Threads help carry out two or more tasks at the sametime
Java virtual machine executes all threads in “parallel”
Threads exists within a process
Each process has at least one thread
Each process has its own private run-time resources
Multiple threads within a process can share resourceswithin the process
Thread.sleep(time in miliseconds)
A great way to pause the current thread
Read more at
http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html