Concurrency Conclusion

Slides:



Advertisements
Similar presentations
Introduction CSCI 444/544 Operating Systems Fall 2008.
Advertisements

Concurrency: Threads, Address Spaces, and Processes Sarah Diesburg Operating Systems COP 4610.
Introduction to Operating Systems CS-2301 B-term Introduction to Operating Systems CS-2301, System Programming for Non-majors (Slides include materials.
Operating Systems Parallel Systems (Now basic OS knowledge)
Threads Irfan Khan Myo Thein What Are Threads ? a light, fine, string like length of material made up of two or more fibers or strands of spun cotton,
Operating Systems Parallel Systems and Threads (Soon to be basic OS knowledge)
Process Concept An operating system executes a variety of programs
Virtualization A way To Begin with Virtual Reality… - Rahul Khanwani.
Processes Part I Processes & Threads* *Referred to slides by Dr. Sanjeev Setia at George Mason University Chapter 3.
Computer System Architectures Computer System Software
COMP 6005 An Introduction To Computing Session Two: Computer Software Systems Software.
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Multithreading Allows application to split itself into multiple “threads” of execution (“threads of execution”). OS support for creating threads, terminating.
Introduction to Threads CS240 Programming in C. Introduction to Threads A thread is a path execution By default, a C/C++ program has one thread called.
T HREADS Gursharan Singh Tatla 27-Jan-11 1
Cosc 4740 Chapter 6, Part 3 Process Synchronization.
Chapter 2 (PART 1) Light-Weight Process (Threads) Department of Computer Science Southern Illinois University Edwardsville Summer, 2004 Dr. Hiroshi Fujinoki.
Multithreading in Java Project of COCS 513 By Wei Li December, 2000.
System Software Provides GUI Manages the resources of the computer system Defines the Software Platform Components of System Software Operating system.
CMPF124 Basic Skills For Knowledge Workers Chapter 1 – Part 1 Introduction To Windows Operating Systems CMPF 112 : COMPUTING SKILLS.
Chapter 4: Threads. 4.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005 Chapter 4: Threads Overview Multithreading.
Fundamental of Computer Architecture By Panyayot Chaikan September 13, 2004.
© Paradigm Publishing, Inc. 4-1 Chapter 4 System Software Chapter 4 System Software.
Department of Computer Science and Software Engineering
CMPF124 Basic Skills For Knowledge Workers Chapter 1 – Part 1 Introduction To Windows Operating Systems.
Lecture 1: Network Operating Systems (NOS) An Introduction.
HNC COMPUTING - Network Concepts 1 Network Concepts Network Concepts Network Operating Systems Network Operating Systems.
Operating System Concepts
Concurrency Conclusion Andy Wang Operating Systems COP 4610 / CGS 5765.
IST 222 Day 2. Homework for Today Take up homework and go over Go to CompTIA web site and view objectives for A+ certification test.
Windows2000 vs. Linux Seyhan Aydin CS134 Presentation.
Silberschatz, Galvin and Gagne ©2009Operating System Concepts – 8 th Edition Chapter 4: Threads.
WHAT IS HARDWARE ? Computer hardware is the collection of physical elements that comprise a COMPUTER SYSTEM LIKE A MOUSE, MONITOR, KEYBOARD, SPEAKER MICROPHONE,
Lecture 5. Example for periority The average waiting time : = 41/5= 8.2.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 4: Threads.
Software.
Introduction to threads
Introduction to Operating Systems
Operating System & Application Software
2. OPERATING SYSTEM 2.1 Operating System Function
CS 6560: Operating Systems Design
Mobile App Development
Sarah Diesburg Operating Systems COP 4610
Process Management Presented By Aditya Gupta Assistant Professor
Chapter 4 Threads.
Lecture 2: Introduction to Operating Systems
Unit OS2: Operating System Principles
CPU Scheduling – Multiprocessor
CS490 Windows Internals Quiz 2 09/27/2013.
Threads & multithreading
Chapter 4: Threads.
Chapter 3: Windows7 Part 1.
Concurrency Conclusion
Operating Systems Processes and Threads.
Chapter 4 Multithreading programming
ICS 143 Principles of Operating Systems
Concurrency CS-3013 Operating Systems C-Term 2008 Assumptions:
Chapter 4: Threads.
Chapter 26 Concurrency and Thread
B.Ramamurthy Chapter 2 : Appendix
Threads Chapter 4.
Concurrency, Processes and Threads
CS510 Operating System Foundations
Chapter 3 – Operating Systems
Light-Weight Process (Threads)
Concurrency Conclusion
Concurrency Conclusion
Introduction and History
Chapter 3: Process Management
Sarah Diesburg Operating Systems CS 3430
Presentation transcript:

Concurrency Conclusion Sarah Diesburg Operating Systems CS 3430

Threads and Synchronization Better, cleaner, and simpler abstraction to application programmers Programming abstraction Sequential execution, each with its own CPU Semaphores and monitors Physical hardware Single CPU Interrupts test_and_set

Since 1985 Every major OS comes with threads OS X OS/2 Windows XP, NT, Vista, 7,8,10 Linux Solaris

Since 1985 Major applications are written in threads Word processing Databases Web servers Embedded systems

A Cautionary Tale IBM OS/2 https://en.wikipedia.org/wiki/OS/2

A Cautionary Tale IBM OS/2 1990 Spectacular failure (IBM re-wrote the whole OS from scratch) Used threads for everything Window systems Communication among programs

Microsoft OS/2 Created many threads Few are ready to run Most threads wait around for user typing and network packets Since each thread needs to store its own execution stack (running or waiting), OS/2 required $200 extra memory to store those threads $200 for working while printing?

The Moral of the Story… Threads are cheap But they are not free

New need for threaded programs Moore’s Law no longer in effect https://en.wikipedia.org/wiki/Moore's_law Chip performance doubles every 2 years Not true now We need to write programs to better take advantage of multiple CPU cores