Preview

Operating System lecture threads

Satisfactory Essays
Open Document
Open Document
1334 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Operating System lecture threads
Chapter 4: Threads

Operating System Concepts – 8th Edition

Silberschatz, Galvin and Gagne ©2009

Chapter 4: Threads


Overview



Multithreading Models



Thread Libraries



Threading Issues



Operating System Examples



Windows XP Threads



Linux Threads

Operating System Concepts – 8th Edition

4.2

Silberschatz, Galvin and Gagne ©2009

Objectives


To introduce the notion of a thread — a fundamental unit of CPU utilization that forms the basis of multithreaded computer systems



To discuss the APIs for the Pthreads, Win32, and Java thread libraries



To examine issues related to multithreaded programming

Operating System Concepts – 8th Edition

4.3

Silberschatz, Galvin and Gagne ©2009

Motivation


Threads run within application



Multiple tasks with the application can be implemented by separate threads


Update display



Fetch data



Spell checking



Answer a network request



Process creation is heavy-weight while thread creation is light-weight



Can simplify code, increase efficiency



Kernels are generally multithreaded

Operating System Concepts – 8th Edition

4.4

Silberschatz, Galvin and Gagne ©2009

Single and Multithreaded Processes

Operating System Concepts – 8th Edition

4.5

Silberschatz, Galvin and Gagne ©2009

Benefits


Responsiveness



Resource Sharing



Economy



Scalability

Operating System Concepts – 8th Edition

4.6

Silberschatz, Galvin and Gagne ©2009

Multicore Programming


Multicore systems putting pressure on programmers, challenges include:


Dividing activities



Balance



Data splitting



Data dependency



Testing and debugging

Operating System Concepts – 8th Edition

4.7

Silberschatz, Galvin and Gagne ©2009

Multithreaded Server Architecture

Operating System Concepts – 8th Edition

4.8

Silberschatz,

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    _____________ is the ability of a central processing unit (CPU) or a single core in a multi-core processor to execute multiple processesor threads concurrently…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Study Guide

    • 2629 Words
    • 11 Pages

    Scheduling is a fundamental operating systems function. Almost all computer resources are scheduled before use. CPU is one of the primary computer resources uses scheduling to design the processes in an operating system. The operating system can make the computer more productive by switching the CPU among processes called CPU scheduler.…

    • 2629 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Scheduling: Any processor may perform scheduling, which complicates the task of enforcing a scheduling policy and assuring that corruption of the scheduler data structures is avoided. If kernel-level multithreading is used, then the opportunity exists to schedule multiple threads from the same process simultaneously on multiple processors.…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Stallings, W. ((2015)). Operating Systems: Internal and Design Principles, 8e. Retrieved from The University of Phoenix eBook Collection Database.…

    • 472 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Unit 5 research paper

    • 297 Words
    • 2 Pages

    (FPU) which is a microprocessor inside the CPU. This basically helps the computer figure out…

    • 297 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    CPU – The CPU is the central electronic chip that determines the processing power of the computer.…

    • 2127 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    stallings, W. (2012). operating systems internal and design principles (7th ed.). Upper Saddle River, NJ: prentice hall.…

    • 608 Words
    • 2 Pages
    Good Essays
  • Better Essays

    IT 600 Module One Lecture

    • 1256 Words
    • 5 Pages

    Silberschatz, A., Galvin, P. B., & Gagne, G. (2009). Operating system concepts. Hoboken, NJ: John Wiley &…

    • 1256 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    Intel vs Amd

    • 4767 Words
    • 20 Pages

    Computers were formed because of its several parts, parts which makes it a whole. One of which is the “PROCESSOR”, which is one of the most important part of the system unit. The processor, also known as the Central Processing Unit (CPU), serve as the “engine” of the computer. It is the component which enables a user to identify whether the connection is fast or slow in such way that it is being operated. It also enables the system create a fast retrieval of information across the applications and programs. Apparently, selecting the kind or quality of the processor is best considered for performing certain tasks on a computer. It is also responsible for interpreting and processing every code it receives from the other computer components; making it usable for the operating system.…

    • 4767 Words
    • 20 Pages
    Powerful Essays
  • Powerful Essays

    Let us first begin by looking at how the number of threads of were utilized. As a way of…

    • 1188 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    1. Compare the prefetching scheme with spooling where the CPU overlaps the input of one job with the computation and of other jobs.…

    • 698 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Os by William Stalling 6/E

    • 238147 Words
    • 953 Pages

    art One provides a background and context for the remainder of this book. This part presents the fundamental concepts of computer architecture and operating system internals.…

    • 238147 Words
    • 953 Pages
    Powerful Essays
  • Better Essays

    My Sql Architecture

    • 1164 Words
    • 5 Pages

    writing the results out to the network communication protocols. Once a thread has been created,…

    • 1164 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Process Migration

    • 35735 Words
    • 143 Pages

    able Shared-Memory Multiprocessors. Ph.D. Thesis, Technical Report, Stanford University. Theimer, M. H. and Hayes, B. (June 1991). Heterogeneous Process Migration by Recompilation. Proceedings of the 11th International Conference on Distributed Computer Systems, pages 18–25. Theimer, M. and Lantz, K. (November 1988). Finding Idle Machines in a Workstation-Based Distributed System. IEEE Transactions on Software Engineering, SE-15(11):1444– 1458. Theimer, M., Lantz, K., and Cheriton, D. (December 1985). Preemptable Remote Execution Facilities for the V System. Proceedings of the 10th ACM Symposium on OS Principles, pages 2–12. Tracey, K. M. (April 1991). Processor Sharing for Cooperative Multi-task Applications. Ph.D. Thesis, Technical Report, Department of Electrical Engineering, Notre Dame, Indiana. Tritscher, S. and Bemmerl, T. (February 1992). Seitenorientierte Prozessmigration als Basis fuer Dynamischen Lastausgleich. GI/ITG Pars Mitteilungen, no 9, pages 58–62. Tschudin, C. (April 1997). The Messenger Environment M0– a condensed description. In Mobile Object Systems: Towards the Programmable Internet, LNCS 1222, Springer Verlag, pages 149–156. van Dijk, G. J. W. and van Gils, M. J. (March 1992). Efficient process migration in the EMPS multiprocessor system. Proceedings 6th International Parallel Processing Symposium, pages 58–66. van Renesse, R., Birman, K. P., and Maffeis, S. (April 1996). Horus: A flexible Group Communication System. Communication of the ACM, 39(4):76–85. Vaswani, R. and Zahorjan, J. (October 1991). The implications of Cache Affinity on Processor Scheduling for Multiprogrammed Shared Memory Multiprocessors. Proceedings of the Thirteenth Symposium on Operating Systems Principles, pages 26–40. Venkatesh, R. and Dattatreya, G. R. (August 1990). Adaptive Optimal Load Balancing of Loosely Coupled Processors with Arbitrary Service Time Distributions. Proceedings of the 1990 International Conference on Parallel Processing, I:22–25. Vigna, G. (December 1998). Mobile Agents Security, LNCS 1419, Springer Verlag, to appear. Vitek, I., Serrano, M., and Thanos, D. (April 1997). Security and Communication in Mobile Object Systems. In Mobile Object Systems: Towards the Programmable Internet, LNCS 1222, Springer Verlag, pages 177–200. Walker, B., Popek, G., English, R., Kline, C., and Thiel, G. (October 1983). The LOCUS Distributed Operating System. Proceedings of the 9th Symposium on Operating Systems Principles, 17(5):49–70. Walker, B. J. and Mathews, R. M. (Winter 1989). Process Migration in AIX’s Transparent Computing Facility (TCF).…

    • 35735 Words
    • 143 Pages
    Good Essays
  • Good Essays

    Semiconductor industry

    • 878 Words
    • 3 Pages

    Dicken (2010) illustrates further that the increasing demand in producing a better performance of the PCs (personal computers) is high. Hence the PCs…

    • 878 Words
    • 3 Pages
    Good Essays

Related Topics