SlideShare a Scribd company logo
Threads

   Organized By: Vinay Arora
                 Assistant Professor
                 CSED, TU




                                   Vinay Arora
                                      CSED
Disclaimer

           This is NOT A COPYRIGHT          MATERIAL


   Content has been taken mainly from the following books:

        Operating Systems Concepts By Silberschatz & Galvin,
Operating Systems: Internals and Design Principles By William Stallings
                        www.os-book.com
         www.cs.jhu.edu/~yairamir/cs418/os2/sld001.htm
     www.personal.kent.edu/~rmuhamma/OpSystems/os.html
 http://msdn.microsoft.com/en-us/library/ms685096(VS.85).aspx
http://www.computer.howsttuffworks.com/operating-system6.htm
         http://williamstallings.com/OS/Animations.html
                               Etc…

                              Vinay Arora
                                 CSED
Thread
  Application - Set of Multiple Processes

  Process – An Executable File (.exe)

  Each PROCESS has its own Address Space, CPU Quota, Access to
  Hardware Resources and Kernel Resources

  THREAD – Function Present within Executable File

  Each THREAD has its own PC, Stack , Registers




                                Vinay Arora
                                   CSED
Process Thread View




                Vinay Arora
                   CSED
Process View




               Vinay Arora
                  CSED
Thread View




              Vinay Arora
                 CSED
Processes & Threads




                Vinay Arora
                   CSED
User Space & Kernel Space




                Vinay Arora
                   CSED
Multicore Programming
   Multi-Core Systems putting pressure on programmers, challenges
   include



      Dividing activities

      Balance

      Data splitting

      Data dependency

      Testing and debugging

                                Vinay Arora
                                   CSED
Concurrent Execution on a Single-core
              System




                  Vinay Arora
                     CSED
Concurrent Execution on a Multi-core
              System




                 Vinay Arora
                    CSED
Pure User Level




                  Vinay Arora
                     CSED
Pure Kernel Level




                Vinay Arora
                   CSED
Combined




           Vinay Arora
              CSED
Combined Threads




               Vinay Arora
                  CSED
Single & Multi Threaded Process




                Vinay Arora
                   CSED
Benefits
   Responsiveness



   Resource Sharing



   Economy



   Utilization of MP Architectures



                                 Vinay Arora
                                    CSED
User Thread & Kernel Thread
   User Thread - Thread Management done by User-Level Threads Library

   Kernel Thread - Supported by the KERNEL

   Examples

      Windows XP/2000

      Solaris

      Linux

      Tru64 UNIX

      Mac OS X


                                 Vinay Arora
                                    CSED
Thread Library
   Three Primary Thread Libraries:


      Java Threads

       Pthreads

      Win32 Threads




                                Vinay Arora
                                   CSED
Multi Threading Models

   Many-to-One



   One-to-One



   Many-to-Many




                  Vinay Arora
                     CSED
Many-to-One Model
  Many User-Level Threads mapped to Single Kernel Thread

  Examples:

     Solaris Green Threads




                             Vinay Arora
                                CSED
One-to-One Model
   Each User-Level Thread maps to KERNEL THREAD

   Examples
      Linux
      Solaris 9 and later
      Windows NT/XP/2000




                            Vinay Arora
                               CSED
Many-to-Many Model
  Allows many User Level Threads to be mapped to many Kernel Threads
  Allows the Operating System to create a sufficient number of Kernel
  Threads

  Windows NT/2000




                              Vinay Arora
                                 CSED
Thnx…



  Vinay Arora
     CSED

More Related Content

PPT
Chapter 4 - Threads
PPT
Operating System 4
PPTX
Threads
PPT
Ch4 Threads
PPTX
Threads (operating System)
PPT
Ch5 OS
 
PDF
Thread
PPT
Operating System Chapter 4 Multithreaded programming
Chapter 4 - Threads
Operating System 4
Threads
Ch4 Threads
Threads (operating System)
Ch5 OS
 
Thread
Operating System Chapter 4 Multithreaded programming

What's hot (20)

PPT
Operating System-Threads-Galvin
PDF
Operating Systems 1 (7/12) - Threads
PPTX
Thread scheduling in Operating Systems
PPTX
Thread management
PPTX
PDF
4 threads
PDF
Section04 threads
PPTX
Thread (Operating System)
PPT
Posix threads(asha)
PPTX
Networking threads
PPT
multi-threading
PPTX
Threads
PPT
Multithreading models
PPTX
THREADS of Operating System by Noman Zahid
PPTX
threads and its types ....in operating system ..
PPTX
PPTX
Operating system: threads(mulithreading,benefits of threads, types of thread)
PPT
Lecture 9 -_pthreads-linux_threads
PPTX
Operating System-Threads-Galvin
Operating Systems 1 (7/12) - Threads
Thread scheduling in Operating Systems
Thread management
4 threads
Section04 threads
Thread (Operating System)
Posix threads(asha)
Networking threads
multi-threading
Threads
Multithreading models
THREADS of Operating System by Noman Zahid
threads and its types ....in operating system ..
Operating system: threads(mulithreading,benefits of threads, types of thread)
Lecture 9 -_pthreads-linux_threads
Ad

Viewers also liked (20)

PPT
Ch5: Threads (Operating System)
PPT
OS Process and Thread Concepts
PDF
Inter Process Communication
PPT
Os Threads
PDF
Main Memory
DOCX
2's complement
PPT
Representation of Negative Numbers
PPT
Complement
PPT
Complements
PPT
2s complement arithmetic
PPTX
1's and 2's complement
PPTX
Thread presentation
PPT
Binary Arithmetic
PPT
PPTX
1s and 2s complement
PPT
Inter process communication
PPT
Os Swapping, Paging, Segmentation and Virtual Memory
PPTX
Memory management
Ch5: Threads (Operating System)
OS Process and Thread Concepts
Inter Process Communication
Os Threads
Main Memory
2's complement
Representation of Negative Numbers
Complement
Complements
2s complement arithmetic
1's and 2's complement
Thread presentation
Binary Arithmetic
1s and 2s complement
Inter process communication
Os Swapping, Paging, Segmentation and Virtual Memory
Memory management
Ad

Similar to OS - Thread (20)

PDF
OS - Process
PDF
OS - System Structure
PDF
OS - Introduction to Operating Systems
PDF
Multithreaded Programming Part- II.pdf
PPTX
Operating system 20 threads
PDF
Threads lecture slides for operating systems
PPT
Operating system support in distributed system
PDF
12-Case-Study-WindowsNT.pdf in operating sysetm.
PPT
PPTX
Lecture 3 threads
DOC
Wiki 2
DOC
PPTX
process and thread.pptx
PPT
Ch04 threads
PPT
Operating System 4 1193308760782240 2
PDF
threads (1).pdfmjlkjfwjgliwiufuaiusyroayr
PDF
Sucet os module_2_notes
PPT
Threads in Operating systems and concepts
PDF
Multicore_Architecture Book.pdf
PPTX
Topic 4- processes.pptx
OS - Process
OS - System Structure
OS - Introduction to Operating Systems
Multithreaded Programming Part- II.pdf
Operating system 20 threads
Threads lecture slides for operating systems
Operating system support in distributed system
12-Case-Study-WindowsNT.pdf in operating sysetm.
Lecture 3 threads
Wiki 2
process and thread.pptx
Ch04 threads
Operating System 4 1193308760782240 2
threads (1).pdfmjlkjfwjgliwiufuaiusyroayr
Sucet os module_2_notes
Threads in Operating systems and concepts
Multicore_Architecture Book.pdf
Topic 4- processes.pptx

More from vinay arora (20)

PDF
Search engine and web crawler
DOCX
Use case diagram (airport)
DOCX
Use case diagram
DOCX
Lab exercise questions (AD & CD)
PDF
SEM - UML (1st case study)
PPT
6 java - loop
PPT
4 java - decision
PPT
3 java - variable type
PPT
2 java - operators
PPT
1 java - data type
PPT
Uta005 lecture3
PPT
Uta005 lecture1
PPT
Uta005 lecture2
PPT
Security & Protection
PPT
Process Synchronization
PDF
CG - Output Primitives
PDF
CG - Display Devices
PDF
CG - Input Output Devices
PDF
CG - Introduction to Computer Graphics
PDF
C Prog. - Strings (Updated)
Search engine and web crawler
Use case diagram (airport)
Use case diagram
Lab exercise questions (AD & CD)
SEM - UML (1st case study)
6 java - loop
4 java - decision
3 java - variable type
2 java - operators
1 java - data type
Uta005 lecture3
Uta005 lecture1
Uta005 lecture2
Security & Protection
Process Synchronization
CG - Output Primitives
CG - Display Devices
CG - Input Output Devices
CG - Introduction to Computer Graphics
C Prog. - Strings (Updated)

Recently uploaded (20)

PDF
Pre independence Education in Inndia.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Lesson notes of climatology university.
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
master seminar digital applications in india
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
01-Introduction-to-Information-Management.pdf
Pre independence Education in Inndia.pdf
Anesthesia in Laparoscopic Surgery in India
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Lesson notes of climatology university.
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPH.pptx obstetrics and gynecology in nursing
Renaissance Architecture: A Journey from Faith to Humanism
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Module 4: Burden of Disease Tutorial Slides S2 2025
2.FourierTransform-ShortQuestionswithAnswers.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
master seminar digital applications in india
VCE English Exam - Section C Student Revision Booklet
01-Introduction-to-Information-Management.pdf

OS - Thread

  • 1. Threads Organized By: Vinay Arora Assistant Professor CSED, TU Vinay Arora CSED
  • 2. Disclaimer This is NOT A COPYRIGHT MATERIAL Content has been taken mainly from the following books: Operating Systems Concepts By Silberschatz & Galvin, Operating Systems: Internals and Design Principles By William Stallings www.os-book.com www.cs.jhu.edu/~yairamir/cs418/os2/sld001.htm www.personal.kent.edu/~rmuhamma/OpSystems/os.html http://msdn.microsoft.com/en-us/library/ms685096(VS.85).aspx http://www.computer.howsttuffworks.com/operating-system6.htm http://williamstallings.com/OS/Animations.html Etc… Vinay Arora CSED
  • 3. Thread Application - Set of Multiple Processes Process – An Executable File (.exe) Each PROCESS has its own Address Space, CPU Quota, Access to Hardware Resources and Kernel Resources THREAD – Function Present within Executable File Each THREAD has its own PC, Stack , Registers Vinay Arora CSED
  • 4. Process Thread View Vinay Arora CSED
  • 5. Process View Vinay Arora CSED
  • 6. Thread View Vinay Arora CSED
  • 7. Processes & Threads Vinay Arora CSED
  • 8. User Space & Kernel Space Vinay Arora CSED
  • 9. Multicore Programming Multi-Core Systems putting pressure on programmers, challenges include Dividing activities Balance Data splitting Data dependency Testing and debugging Vinay Arora CSED
  • 10. Concurrent Execution on a Single-core System Vinay Arora CSED
  • 11. Concurrent Execution on a Multi-core System Vinay Arora CSED
  • 12. Pure User Level Vinay Arora CSED
  • 13. Pure Kernel Level Vinay Arora CSED
  • 14. Combined Vinay Arora CSED
  • 15. Combined Threads Vinay Arora CSED
  • 16. Single & Multi Threaded Process Vinay Arora CSED
  • 17. Benefits Responsiveness Resource Sharing Economy Utilization of MP Architectures Vinay Arora CSED
  • 18. User Thread & Kernel Thread User Thread - Thread Management done by User-Level Threads Library Kernel Thread - Supported by the KERNEL Examples Windows XP/2000 Solaris Linux Tru64 UNIX Mac OS X Vinay Arora CSED
  • 19. Thread Library Three Primary Thread Libraries: Java Threads Pthreads Win32 Threads Vinay Arora CSED
  • 20. Multi Threading Models Many-to-One One-to-One Many-to-Many Vinay Arora CSED
  • 21. Many-to-One Model Many User-Level Threads mapped to Single Kernel Thread Examples: Solaris Green Threads Vinay Arora CSED
  • 22. One-to-One Model Each User-Level Thread maps to KERNEL THREAD Examples Linux Solaris 9 and later Windows NT/XP/2000 Vinay Arora CSED
  • 23. Many-to-Many Model Allows many User Level Threads to be mapped to many Kernel Threads Allows the Operating System to create a sufficient number of Kernel Threads Windows NT/2000 Vinay Arora CSED
  • 24. Thnx… Vinay Arora CSED