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
11Activity
0 of .
Results for:
No results containing your search query
P. 1
Threads Java

Threads Java

Ratings: (0)|Views: 148|Likes:
Published by api-3827215

More info:

Published by: api-3827215 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

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

03/18/2014

pdf

text

original

Threads
1
Threads
Threads
2
What is aThread?
ATh read or Thread of execution refers to the execution of a sequential set of
instructions.
Multi Threading is the ability to run multiple threads of execution concurrently.
Why multi-thread?
What actually happens on a single processor?
Threads
3
Problems with multithreading
No one thread should disturbs the work of any other thread.
Example:
Imagine an office - workers function independently and work in parallele xce pt
when they need to share office resources/communicate.
\u2022 Two workers can speak only if one speaks and the other listens
\u2022 A worker cannot use the copy machine until the machine is free
Multiple threads of a program are much like the workers
\u2022 For two threads to communicate - one has to talk and the other has to listen
\u2022 For a thread to use a shared resources, the resource has to be free and ready

Activity (11)

You've already reviewed this. Edit your review.
1 hundred reads
Xtian Byron liked this
Mano Chowdary liked this
Om Mariam liked this
mumya liked this
srrsvava liked this
Subhendu1981 liked this
kalaamanip liked this
avsrkg liked this
kavitakharbanda liked this

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)//-->