Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Slides - Lab Chapter 5 - Java Threads

Slides - Lab Chapter 5 - Java Threads

Ratings: (0)|Views: 3|Likes:

More info:

Published by: Isaiah James Vacalares on Jul 05, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/15/2014

pdf

text

original

 
OperatingSystems
1
Lab 05 Java Threads
 
OperatingSystems
2
Outline
Creating a Java Thread
Synchronized Keyword
Wait and Notify
High Level Cuncurrency Objects
 
OperatingSystems
3
Creating a Java thread
Java threads are a way to have different parts of your program running at the same time.
For example, you can create an application that acceptsinput from different users at the same time, each user handled by a thread.
 Also, most networking applications involve threads
 –
you would need to create a thread that would wait for incomingmessages while the rest of your program handles your outgoingmessages.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->