SlideShare a Scribd company logo
1 of 1
Kernel-Level Threads

In this method, the kernel knows about and manages the threads. No runtime
system is needed in this case. Instead of thread table in each process, the kernel
has a thread table that keeps track of all threads in the system. In addition, the
kernel also maintains the traditional process table to keep track of processes.
Operating Systems kernel provides system call to create and manage threads.

The implementation of general structure of kernel-level thread is


                  <DIAGRAM>

Advantages:

   •   Because kernel has full knowledge of all threads, Scheduler may decide
       to give more time to a process having large number of threads than
       process having small number of threads.
   •   Kernel-level threads are especially good for applications that frequently
       block.

Disadvantages:

   •   The kernel-level threads are slow and inefficient. For instance, threads
       operations are hundreds of times slower than that of user-level threads.
   •   Since kernel must manage and schedule threads as well as processes. It
       require a full thread control block (TCB) for each thread to maintain
       information about threads. As a result there is significant overhead and
       increased in kernel complexity.

More Related Content

What's hot (20)

Multithreaded processors ppt
Multithreaded processors pptMultithreaded processors ppt
Multithreaded processors ppt
 
Multithreading computer architecture
 Multithreading computer architecture  Multithreading computer architecture
Multithreading computer architecture
 
Advanced processor principles
Advanced processor principlesAdvanced processor principles
Advanced processor principles
 
Structure And Role Of The Processor
Structure And Role Of The ProcessorStructure And Role Of The Processor
Structure And Role Of The Processor
 
Hardware multithreading
Hardware multithreadingHardware multithreading
Hardware multithreading
 
Lecture5
Lecture5Lecture5
Lecture5
 
Lecture 3 threads
Lecture 3   threadsLecture 3   threads
Lecture 3 threads
 
Superscalar Architecture_AIUB
Superscalar Architecture_AIUBSuperscalar Architecture_AIUB
Superscalar Architecture_AIUB
 
FIne Grain Multithreading
FIne Grain MultithreadingFIne Grain Multithreading
FIne Grain Multithreading
 
Dichotomy of parallel computing platforms
Dichotomy of parallel computing platformsDichotomy of parallel computing platforms
Dichotomy of parallel computing platforms
 
Lecture4
Lecture4Lecture4
Lecture4
 
Thread
ThreadThread
Thread
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Paralle programming 2
Paralle programming 2Paralle programming 2
Paralle programming 2
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programming
 
Lecture1
Lecture1Lecture1
Lecture1
 
Parallel processing extra
Parallel processing extraParallel processing extra
Parallel processing extra
 
Presention
PresentionPresention
Presention
 
Introduction to parallel processing
Introduction to parallel processingIntroduction to parallel processing
Introduction to parallel processing
 
Os Threads
Os ThreadsOs Threads
Os Threads
 

Viewers also liked

Multithreading
MultithreadingMultithreading
MultithreadingSid Hegde
 
Management principles and ethos: From India to the World
Management principles and ethos: From India to the WorldManagement principles and ethos: From India to the World
Management principles and ethos: From India to the WorldRishikesh Patil
 
New Microsoft Word Document (2)
New Microsoft Word Document (2)New Microsoft Word Document (2)
New Microsoft Word Document (2)Sid Hegde
 
Ethos & values for managers ppt
Ethos & values for managers pptEthos & values for managers ppt
Ethos & values for managers pptAnjuDidu Raina
 
Indian ethos in management
Indian ethos in managementIndian ethos in management
Indian ethos in managementDarshan Hazare
 
Business ethics & work ethos
Business ethics &  work ethosBusiness ethics &  work ethos
Business ethics & work ethosGarima Jain
 
Indian Ethos In Management
Indian Ethos In ManagementIndian Ethos In Management
Indian Ethos In Managementguest07f300
 

Viewers also liked (10)

Multithreading
MultithreadingMultithreading
Multithreading
 
Management principles and ethos: From India to the World
Management principles and ethos: From India to the WorldManagement principles and ethos: From India to the World
Management principles and ethos: From India to the World
 
New Microsoft Word Document (2)
New Microsoft Word Document (2)New Microsoft Word Document (2)
New Microsoft Word Document (2)
 
Indian ethos
Indian ethosIndian ethos
Indian ethos
 
Ethos & values for managers ppt
Ethos & values for managers pptEthos & values for managers ppt
Ethos & values for managers ppt
 
Indian ethos in management
Indian ethos in managementIndian ethos in management
Indian ethos in management
 
Chapter 1-indian-ethos
Chapter 1-indian-ethosChapter 1-indian-ethos
Chapter 1-indian-ethos
 
Business ethics & work ethos
Business ethics &  work ethosBusiness ethics &  work ethos
Business ethics & work ethos
 
Ethos ppt.
Ethos ppt.Ethos ppt.
Ethos ppt.
 
Indian Ethos In Management
Indian Ethos In ManagementIndian Ethos In Management
Indian Ethos In Management
 

Similar to New Microsoft Word Document (3)

THREADS of Operating System by Noman Zahid
THREADS of Operating System by Noman Zahid THREADS of Operating System by Noman Zahid
THREADS of Operating System by Noman Zahid noman zahid
 
chapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptchapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptaakarshsiwani1
 
1 Multithreading basics.pptx
1 Multithreading basics.pptx1 Multithreading basics.pptx
1 Multithreading basics.pptxYojanaFegade
 
dos slide share.pptx
dos slide share.pptxdos slide share.pptx
dos slide share.pptxNagaVarthini
 
Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3AbdullahMunir32
 
Multithreaded Programming Part- II.pdf
Multithreaded Programming Part- II.pdfMultithreaded Programming Part- II.pdf
Multithreaded Programming Part- II.pdfHarika Pudugosula
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)WajeehaBaig
 
Hardware Multithreading.pdf
Hardware Multithreading.pdfHardware Multithreading.pdf
Hardware Multithreading.pdfrajaratna4
 
threads-ppfldkgsh;reghuiregiuhrughet.pptx
threads-ppfldkgsh;reghuiregiuhrughet.pptxthreads-ppfldkgsh;reghuiregiuhrughet.pptx
threads-ppfldkgsh;reghuiregiuhrughet.pptxpiyushlohia1857
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentationchnrketan
 

Similar to New Microsoft Word Document (3) (20)

Threads.ppt
Threads.pptThreads.ppt
Threads.ppt
 
Thread
ThreadThread
Thread
 
Threads
ThreadsThreads
Threads
 
THREADS of Operating System by Noman Zahid
THREADS of Operating System by Noman Zahid THREADS of Operating System by Noman Zahid
THREADS of Operating System by Noman Zahid
 
Thread
ThreadThread
Thread
 
Threads .ppt
Threads .pptThreads .ppt
Threads .ppt
 
chapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptchapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.ppt
 
Threads
ThreadsThreads
Threads
 
1 Multithreading basics.pptx
1 Multithreading basics.pptx1 Multithreading basics.pptx
1 Multithreading basics.pptx
 
dos slide share.pptx
dos slide share.pptxdos slide share.pptx
dos slide share.pptx
 
OS Thr schd.ppt
OS Thr schd.pptOS Thr schd.ppt
OS Thr schd.ppt
 
Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3Parallel and Distributed Computing chapter 3
Parallel and Distributed Computing chapter 3
 
Real time operating systems
Real time operating systemsReal time operating systems
Real time operating systems
 
Multithreaded Programming Part- II.pdf
Multithreaded Programming Part- II.pdfMultithreaded Programming Part- II.pdf
Multithreaded Programming Part- II.pdf
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
Unit 2 part 2(Process)
Unit 2 part 2(Process)Unit 2 part 2(Process)
Unit 2 part 2(Process)
 
Hardware Multithreading.pdf
Hardware Multithreading.pdfHardware Multithreading.pdf
Hardware Multithreading.pdf
 
threads-ppfldkgsh;reghuiregiuhrughet.pptx
threads-ppfldkgsh;reghuiregiuhrughet.pptxthreads-ppfldkgsh;reghuiregiuhrughet.pptx
threads-ppfldkgsh;reghuiregiuhrughet.pptx
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
Thread
ThreadThread
Thread
 

New Microsoft Word Document (3)

  • 1. Kernel-Level Threads In this method, the kernel knows about and manages the threads. No runtime system is needed in this case. Instead of thread table in each process, the kernel has a thread table that keeps track of all threads in the system. In addition, the kernel also maintains the traditional process table to keep track of processes. Operating Systems kernel provides system call to create and manage threads. The implementation of general structure of kernel-level thread is <DIAGRAM> Advantages: • Because kernel has full knowledge of all threads, Scheduler may decide to give more time to a process having large number of threads than process having small number of threads. • Kernel-level threads are especially good for applications that frequently block. Disadvantages: • The kernel-level threads are slow and inefficient. For instance, threads operations are hundreds of times slower than that of user-level threads. • Since kernel must manage and schedule threads as well as processes. It require a full thread control block (TCB) for each thread to maintain information about threads. As a result there is significant overhead and increased in kernel complexity.