Session 10 Threads (Autosaved)
Session 10 Threads (Autosaved)
THREADS
Introduction
• Despite of the fact that a thread must execute in
process, the process and its associated threads are
different concept. Processes are used to group
resources together and threads are the entities
scheduled for execution on the CPU.
advantages Disadvantages
• Thread switching does • In typical operating
not require kernel most system calls are
privileges blocking
• Can run on any • Multithreaded
operating system application cannot
take advantage of
• Fast to create and multiprocessing
manage.