chapter 6 : case studies
DESCRIPTION
Chapter 6 : Case Studies. UNIX Dos Windows 95 Windows NT. UNIX. There are two main versions: AT&T System V Release 4 (SVR4) Originally developed by AT&T, now SCO BSD (Berkeley Software Distribution). Supports various architectures Structure varies Supports preemptive multitasking - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/1.jpg)
Ceng 334 - Operating Systems 6-1
Chapter 6 : Case Studies
• UNIX
• Dos
• Windows 95
• Windows NT
![Page 2: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/2.jpg)
Ceng 334 - Operating Systems 6-2
UNIX
• There are two main versions:
– AT&T System V Release 4 (SVR4)
• Originally developed by AT&T, now SCO
– BSD (Berkeley Software Distribution)
![Page 3: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/3.jpg)
Ceng 334 - Operating Systems 6-3
• Supports various architectures
• Structure varies
• Supports preemptive multitasking
• Multiuser environment - generally secure
• Supports multithreaded applications
• Protection/Security is high on modern versions
![Page 4: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/4.jpg)
Ceng 334 - Operating Systems 6-4
• Supports symmetric multiprocessing• Highly scalabe/portable to various systems• Many types/flavours of UNIX exist
![Page 5: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/5.jpg)
Ceng 334 - Operating Systems 6-5
![Page 6: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/6.jpg)
Ceng 334 - Operating Systems 6-6
MS-DOS
• Limited to x86 architecture
• Simple Structure
• Single User (No tasking, scheduling, priorities)
• No protection
• Monolithic structure
• Old, outdated but still widely used (hardware and cost driven decision)
![Page 7: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/7.jpg)
Ceng 334 - Operating Systems 6-7
![Page 8: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/8.jpg)
Ceng 334 - Operating Systems 6-8
Windows 95• x86 architecture
• Layered
• Single user
• 32 bit applications run in a preemptive, multithreaded, multitasking environment
• 16 bit applications (of Windows 3.x) run in shared memory space in a cooperative multitasking environment
![Page 9: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/9.jpg)
Ceng 334 - Operating Systems 6-9
• Virtual DOS Machine for DOS applications
• “Plug and Play” - new OS “advantage”
![Page 10: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/10.jpg)
Ceng 334 - Operating Systems 6-10
![Page 11: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/11.jpg)
Ceng 334 - Operating Systems 6-11
![Page 12: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/12.jpg)
Ceng 334 - Operating Systems 6-12
Windows 95 ArchitectureSystem Virtual Machine
Win32 app
Win32 app
Win32 app
Systemservices,
KERNEL,USER,
andGDI
Win16 app
Win16 app
DOS app
DOS app
DOS app
DOS Virtual Machines
Ring 3
Ring 0
Virtual Machine Manager subsystem File Management subsystem
![Page 13: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/13.jpg)
Ceng 334 - Operating Systems 6-13
• VMM (Virtual Machine Manager) and file management subsystems run in ring 0 (the most privileged level of the four-ring Intel 386 protection model). This implies these two modules have unrestricted access to the whole system.
• VMM provides memory management, scheduling and DOS Protected Mode Interface (DPMI)
• VMM also includes all Virtual Extended Drivers (VxDs) to virtualize hardware devices.
![Page 14: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/14.jpg)
Ceng 334 - Operating Systems 6-14
• The system Virtual Machine runs in ring 3 (The only other protection level used by Win 95. Ring 3 is the least privileged, best isolated level)
• All applications and core dynamic link libraries (DLLs) - KERNEL, USER, and GDI execute in the VM
![Page 15: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/15.jpg)
Ceng 334 - Operating Systems 6-15
Multitasking & Multithreading
• Multiple concurrent threads
• Time is allocated on a per-thread basis
• DOS VMs and VM address space shared by Win16 applications constitute one thread each
• Each Win32 apps represent at least one, and possibly two or more, threads
![Page 16: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/16.jpg)
Ceng 334 - Operating Systems 6-16
Scheduling
• The scheduler allocates time based on execution priority, taking into account factors such as whether the thread belongs to a foreground or background process and how long it has been since the thread was last run
• Win32 and DOS apps are preemptively multitasked.
• Win16 apps are cooperatively multitasked within the time slice allocated.
![Page 17: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/17.jpg)
Ceng 334 - Operating Systems 6-17
Desynchronized Input Queues
• An input queue is where hardware generated messages such as mouse clicks and keystrokes are stored for app retrieveal
• Win95 assigns each application its own input queue
• In Windows 3.x there is only one input queue so a misbehaving process may delay all other applications
![Page 18: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/18.jpg)
Ceng 334 - Operating Systems 6-18
(Symmetric Multiprocessing) SMP
• Not applicable to Win95.
• Only in NT versions
![Page 19: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/19.jpg)
Ceng 334 - Operating Systems 6-19
File System
• Windows 3.x Oss use DOS services to perform file I/O.
• Win95 uses a 32-bit (16-bit for Windows 3.x) file system VFAT (Virtual FAT)
• VFAT is compatible with FAT volumes
• VFAT permits long file names (up to 255 characters)
![Page 20: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/20.jpg)
Ceng 334 - Operating Systems 6-20
Windows NT
• 32 bit preemptive multitasking OS• Supports different chip architectures (CISC
and RISC)• Can work as a server or client (workstation)• Has the same GUI as Windows 95• Modular style• Multiuser, multitasking• Supports threads as well as classical
processes
![Page 21: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/21.jpg)
Ceng 334 - Operating Systems 6-21
• Support SMP (Symmetric Multiprocessing) (1 to 32 processors)
• Designed with security in mind
• Supports distributed processing - networking is a core component to the OS
• Supports RPCs
• Very robust (reliable)
![Page 22: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/22.jpg)
Ceng 334 - Operating Systems 6-22
• The HAL (Hardware Abstraction Level) makes porting very easy
• Supports non-NT applications through environment sub systems - meaning it can run Win32, OS/2 and POSIX applications (supports multiple personalities)
• NT style OSes are the way of the future
![Page 23: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/23.jpg)
Ceng 334 - Operating Systems 6-23
![Page 24: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/24.jpg)
Ceng 334 - Operating Systems 6-24
Comparative OS Characteristics
Operating System Characteristics Windows95
Windows NTworksation
Preemptive multitasking – 32-bit apps . .Preemptive multitasking – 16-bit apps .Supports multithreaded apps . .Apps run in protected memory space 32 bit only .Subsystems run in protected memoryspace .Supports symmetric processing .Desktop (object-oriented) user interface . Version 4.0
![Page 25: Chapter 6 : Case Studies](https://reader036.vdocuments.net/reader036/viewer/2022081508/56814e7e550346895dbc1b0f/html5/thumbnails/25.jpg)
Ceng 334 - Operating Systems 6-25
References
• Modern Operating Systems, Andrew S. Tanenbaum, Prentice-Hall, 1992
• Operating Systems (Second Edition), William Stallings, Prentice-Hall, 1995
• Local Area Networks : A Client/Server Approach, James E. Goldman, John Wiley&Sons, 1997
• Your Next Operating System, PC Magazine, September 26, 1995, pp. 102-159
• Windows 95 And Its Competitors, PC Magazine, May 16, 1995, pp. 139-156
• Chicago: Under Construction, PC Magazine, April 12, 1994, pp. 183-207