0
Threads    Melick R. Baranasooriyahttp://melick-rajee.blogspot.com/
ThreadO Operating systems  O separate the different applications  O operating system allocates processor timeO Thread main...
When to use ?O Rich user experienceO Divide the Work loadO Communicate over  O network  O Web server  O database
When to use ? ..O Operations that take a large amount of  timeO Distinguish tasks  O high-priority  O manages time-critica...
Simple Example
Thread OperationsAbort()                         Sleep()                Join()                           WaitOne()  Interr...
Cross Thread OperationsO GUI is running in a separate threadO If we use threads  O It is running in separate Thread
Thread Safe OperationsO LockO MutexO Semaphore  O Limits the number of threads that can access a    resourceO Monitor
Thank You!
Upcoming SlideShare
Loading in...5
×

Threading

1,554

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,554
On Slideshare
0
From Embeds
0
Number of Embeds
30
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Threading"

  1. 1. Threads Melick R. Baranasooriyahttp://melick-rajee.blogspot.com/
  2. 2. ThreadO Operating systems O separate the different applications O operating system allocates processor timeO Thread maintains O exception handlers O a scheduling priority
  3. 3. When to use ?O Rich user experienceO Divide the Work loadO Communicate over O network O Web server O database
  4. 4. When to use ? ..O Operations that take a large amount of timeO Distinguish tasks O high-priority O manages time-critical tasks O low-priority threadO May consume memory (< than few)
  5. 5. Simple Example
  6. 6. Thread OperationsAbort() Sleep() Join() WaitOne() Interrupt()
  7. 7. Cross Thread OperationsO GUI is running in a separate threadO If we use threads O It is running in separate Thread
  8. 8. Thread Safe OperationsO LockO MutexO Semaphore O Limits the number of threads that can access a resourceO Monitor
  9. 9. Thank You!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×