Threads are used by operating systems to allow multiple tasks to run simultaneously by allocating processor time between tasks. Threads maintain scheduling priorities and exception handlers independently of other threads. Threads are useful for dividing workload, providing rich user experiences, and handling operations that take a long time such as communicating over a network or with a database. Threads can be prioritized as high or low priority and can consume less memory than separate processes. Common thread operations include aborting, sleeping, joining, and waiting on threads.
1 of 9
More Related Content
Threading
1. Threads
Melick R. Baranasooriya
http://melick-rajee.blogspot.com/
2. Thread
O Operating systems
O separate the different applications
O operating system allocates processor time
O Thread maintains
O exception handlers
O a scheduling priority
3. When to use ?
O Rich user experience
O Divide the Work load
O Communicate over
O network
O Web server
O database
4. When to use ? ..
O Operations that take a large amount of
time
O Distinguish tasks
O high-priority
O manages time-critical tasks
O low-priority thread
O May consume memory (< than few)