Threading

1,950 views

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,950
On SlideShare
0
From Embeds
0
Number of Embeds
1,454
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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!

×