OS/2 Warp Chris Ashworth Cameron Davis John Weatherley.

Slides:



Advertisements
Similar presentations
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Advertisements

Chapter 3 Process Description and Control
Chorus and other Microkernels Presented by: Jonathan Tanner and Brian Doyle Articles By: Jon Udell Peter D. Varhol Dick Pountain.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
IBM OS/2 CS450 Section 2 5:00PM Perpetrators: © Dario Berini, Derek Cole, Drew Hayes, Leigh Johann, Matt Kesler.
Computer Systems/Operating Systems - Class 8
1 Threads, SMP, and Microkernels Chapter 4. 2 Process: Some Info. Motivation for threads! Two fundamental aspects of a “process”: Resource ownership Scheduling.
Process Description and Control
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Page 1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
1 Process Description and Control Chapter 3. 2 Process Management—Fundamental task of an OS The OS is responsible for: Allocation of resources to processes.
1 Process Description and Control Chapter 3 = Why process? = What is a process? = How to represent processes? = How to control processes?
1 I/O Management in Representative Operating Systems.
Using Two Queues. Using Multiple Queues Suspended Processes Processor is faster than I/O so all processes could be waiting for I/O Processor is faster.
Process Description and Control Chapter 3. Major Requirements of an OS Interleave the execution of several processes to maximize processor utilization.
Jackson Behling Robert Barclay GROUP ‘I’
Ceng Operating Systems
Mac OS X Stephen Ayers David Der Nathan Henkel Dan Hodos William Hunt.
1 Lecture 4: Threads Operating System Fall Contents Overview: Processes & Threads Benefits of Threads Thread State and Operations User Thread.
Operating Systems Advanced OS - E. OS Advanced Evaluating an Operating System.
Operating System 4 THREADS, SMP AND MICROKERNELS
Chapter 41 Processes Chapter 4. 2 Processes  Multiprogramming operating systems are built around the concept of process (also called task).  A process.
IBM OS/2 Warp Mike Storck Matt Kerster Mike Roe Patrick Caldwell.
Processes and Threads Processes have two characteristics: – Resource ownership - process includes a virtual address space to hold the process image – Scheduling/execution.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Multiprogramming. Readings r Silberschatz, Galvin, Gagne, “Operating System Concepts”, 8 th edition: Chapter 3.1, 3.2.
The Amiga Operating System: Past and Present Aaron Hensley Kayla Zinn Brad Campbell Gregory Mathurin Josh Benson.
2003 Dominic Swayne1 Microsoft Disk Operating System and PC DOS CS-550-1: Operating Systems Fall 2003 Dominic Swayne.
Threads G.Anuradha (Reference : William Stallings)
Scott Ferguson Section 1
1 Threads, SMP, and Microkernels Chapter Multithreading Operating system supports multiple threads of execution within a single process MS-DOS.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
Windows 2000 Michael Blinn Ben Hejl Jane McHugh Matthew VanMater.
1 Unix Architecture. 2 Operating Systems Concepts 1. Process 2. Memory management 3. Information protection & security 4. Scheduling and resource management.
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
Operating Systems: Internals and Design Principles
Process Description and Control Chapter 3. Source Modified slides from Missouri U. of Science and Tech.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Processes and Threads.
What is an Operating System? Various systems and their pros and cons –E.g. multi-tasking vs. Batch OS definitions –Resource allocator –Control program.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 3.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
1 Threads, SMP, and Microkernels Chapter 4. 2 Process Resource ownership - process includes a virtual address space to hold the process image Scheduling/execution-
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Threads, SMP, and Microkernels Chapter 4. Processes and Threads Operating systems use processes for two purposes - Resource allocation and resource ownership.
OS/2 CS Operating Systems Section 3 Fall 2003 By Keith Ancowitz Brian Henderson James Mauss Danielle Miller Kyle Nevins.
IBM’s OS/2 by Chris Axford Chris Evans Elizabeth McGinnis Erik Swensson.
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Introduction to Operating Systems Concepts
Process Management Process Concept Why only the global variables?
CS 6560: Operating Systems Design
Unit OS4: Scheduling and Dispatch
Threads, SMP, and Microkernels
Module 2: Computer-System Structures
Main Memory Background Swapping Contiguous Allocation Paging
Chapter 2: The Linux System Part 3
Process Description and Control
OS/2 Warp Chris Algire Jonathan Depner Daniel Kvitko Jason Shifflett
Process Description and Control
Lecture 4- Threads, SMP, and Microkernels
Threads and Concurrency
Process Description and Control
Process Description and Control
Chapter 2 Processes and Threads 2.1 Processes 2.2 Threads
Module 2: Computer-System Structures
CSE 153 Design of Operating Systems Winter 2019
Chapter 1: Introduction CSS503 Systems Programming
Michael Blinn Ben Hejl Jane McHugh Matthew VanMater
Mr. M. D. Jamadar Assistant Professor
Presentation transcript:

OS/2 Warp Chris Ashworth Cameron Davis John Weatherley

2 OS/2: A General Look Developed by IBM and Microsoft and was first released in 1987 as the successor to DOS Users claimed it was too “industrial” and hard to install IBM released OS/2 Warp in 1994 to compete with Windows Currently OS/2 is more focused towards large industry

3 OS/2: A General Look contd. Some differences between OS/2 and DOS

4 Privilege Rings of the Processor Ring 0 = kernel and physical device drivers Ring 1 = not used Ring 2 = System files Ring 3 = User applications Requires use of “call gate” to move between rings

5 Symmetric Multi-Processing Many OS/2 applications make use of multiple threads The first SMP version was 2.11 and was released in 1993 When running 5 programs on four processors there was 404% increase in throughput A complete build of the kernel took 2 hours and 2 minutes on a single processor, but only took 46 minutes on a dual processor of the same speed

6 Memory Management OS/2 supports the sharing of code and data segments between multiple processes The system is bimodal, using real and protected modes, to use the full addressing range of the architecture, and to allow for compatibility with DOS 3.3 applications that are unable to access the full memory space above 640k Mode switching is built into the memory management system, but the processor is required to reset. Protect-mode programs will run in the background concurrently with real-mode programs, however, real-mode programs freeze when a protect-mode program takes the foreground. Data Structures: Local Description Table: allocated when a program is started and dynamically maps memory allocated to a particular process. Global Description Table: GDT is statically allocated when the kernel is built. It contains descriptors for global system segments, aliases to LDT and Per Task Data Area. Interrupt Descriptor Table (IDT): used to vector interrupts to the routines.

7 Process Management Data Structures A process owns resources such as threads, file handles, semaphores, queues, and a memory map described by its own LDT. This information is maintained using a Per Task Data Area (PTDA). Each PTDA contains at least one Thread Control Block (TCB). The TCB contains a register set and the kernel stack for that thread, and information for thread scheduling and I/O activity. OS/2 also uses various data structures for process management. These are semaphores, signals, pipes, and queues. Semaphores: Protect resources of multithreaded processes. A semaphore is a data structure owned by one thread at a time. –System semaphores are granted the first requestor and blocks the others until the first relinquishes control. –Random-Access Memory (RAM) semaphores can be utilized to serialize among the different threads of a single process. No deadlock prevention among threads requesting access. Signals: Notify processes of an event. defined to indicate that a user has evoked a break function and the process is required to terminate itself. Pipes: For interprocess communication. Permits two processes to communicate by using the file I/O calls of the system. The first process writes data into the pipe, and the second reads data from the pipe. Queues: For interprocess communication. Queues use system calls that implement the mailbox model. Only the owner can read, but any thread can write.

8 File Management Uses the same file-system, file-naming, and drive-letter conventions as DOS (FAT) OS/2 has asynchronous file I/O operations in addition synchronous file I/O operations. Threads can be started solely to perform I/O High Performance File-System (HPFS): directory organization of FAT but is automatically sorted in a binary search tree based on filenames –binary tree is made of fnodes, allocation sectors, and directory blocks that are all doubly linked contain a unique 32-bit signature. –CHKDSK can rebuild an entire volume by methodically scanning the disk for fnodes, allocation sectors, and directory blocks, using them to reconstruct the entire file-system HPFS includes information about the modification, creation, and access date and times Organizes drive into 8 MB bands. Between each of these bands are 2K allocation bitmaps, which keep track of which sectors within a band have and have not been allocated. Banding increases performance because the drive head does not have to return to the top (cylinder 0) of the disk, but instead it may return to the nearest band allocation bitmap. Unit of file allocation is changed from clusters to physical sectors (512 bytes), which reduce lost disk space. Super Block, Spare Block, and Hotfixing

9 Scheduling Pre-emptive Round Robin scheduling scheme 4 priorities, 32 levels Time quantum is user set between ms Priority boosts Kernel threads cannot be pre-empted

10 Threads Multi-threaded OS Designed for multiple processors Only one kernel thread at a time A thread on one processor can control threads on other processors I/O handled differently on single processor systems

11 Synchronization Uses SMP to synchronize between processors Each processor has its own page directory Single processor systems uses interrupt disabling to sync threads

12 Summary OS/2 Warp was IBM’s attempt to make a user friendly operating system Geared towards large industries Designed for symmetric multi-processing Makes use of the HPFS file system Uses preemptive Round Robin scheduling