Chapter Eleven Windows XP Professional Application Support.

Slides:



Advertisements
Similar presentations
Threads, SMP, and Microkernels
Advertisements

Chapter 2 Operating System Overview Operating Systems: Internals and Design Principles, 6/E William Stallings.
2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 4 Operating System Fundamentals.
1 Module 11 Supporting Applications. 2  Overview Subsystems Overview Supporting Win32-based Applications Supporting MS-DOS-based and Win16-based Applications.
Chapter Nine NetWare-Based Networking. Objectives Identify the advantages of using the NetWare network operating system Describe NetWare’s server hardware.
INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
1 CE6130 現代作業系統核心 Modern Operating System Kernels 許 富 皓.
Chapter 11 Operating Systems
F2032 Fundamental of OS Chapter 1 Introduction to Operating System Part 4.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 8: Implementing and Managing Printers.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
1 Threads Chapter 4 Reading: 4.1,4.4, Process Characteristics l Unit of resource ownership - process is allocated: n a virtual address space to.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
Chapter 51 Threads Chapter 5. 2 Process Characteristics  Concept of Process has two facets.  A Process is: A Unit of resource ownership:  a virtual.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
IT Essentials - Chapter 4 Operating System Fundamentals.
Chapter 8 Windows Outline Programming Windows 2000 System structure Processes and threads in Windows 2000 Memory management The Windows 2000 file.
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Ceng Operating Systems
Hands-On Microsoft Windows Server 2008
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
1 Operating System Overview Chapter 2 Advanced Operating System.
MCTS Guide to Microsoft Windows 7
Process Management. Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Examples of IPC Systems Communication.
Chapter 6 Operating System Support. This chapter describes how middleware is supported by the operating system facilities at the nodes of a distributed.
Operating Systems  A collection of programs that  Coordinates computer usage among users  Manages computer resources  Handle Common Tasks.
Chapter One Introduction to Windows XP. Objectives Describe the Windows XP product family Describe the Windows XP product family Describe the major features.
Operating Systems JEOPARDY Computer Repair GeneralConcepts OS Tasks MoreConcepts Using the OS Misc
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
11 MANAGING AND DISTRIBUTING SOFTWARE BY USING GROUP POLICY Chapter 5.
Chapter Nine NetWare-Based Networking. Introduction to NetWare In 1983, Novell introduced its NetWare network operating system Versions 3.1 and 3.1—collectively.
April 2000Dr Milan Simic1 Network Operating Systems Windows NT.
Chapter 2 Operating System Overview
Windows XP. History Windows XP is based on the NT kernel developed in 1988 Windows XP is based on the NT kernel developed in 1988 XP was originally sold.
Windows 2000 Course Summary Computing Department, Lancaster University, UK.
Windows NT Operating System. Windows NT Models Layered Model Client/Server Model Object Model Symmetric Multiprocessing.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 2 (Part II) Operating System Overview.
MCTS Guide to Microsoft Windows Vista Chapter 12 Application Support.
Scott Ferguson Section 1
Chapter Thirteen Booting Windows XP. Objectives Understand the Windows XP boot process Understand the Windows XP boot process Troubleshoot system restoration.
Chapter 2 Introduction to Systems Architecture. Chapter goals Discuss the development of automated computing Describe the general capabilities of a computer.
Lecture 5: Threads process as a unit of scheduling and a unit of resource allocation processes vs. threads what to program with threads why use threads.
System Components ● There are three main protected modules of the System  The Hardware Abstraction Layer ● A virtual machine to configure all devices.
MCTS GUIDE TO MICROSOFT WINDOWS 7 Chapter 11 Application Support.
Full and Para Virtualization
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 2: The Linux System Part 2.
Operating Systems Unit 2: – Process Context switch Interrupt Interprocess communication – Thread Thread models Operating Systems.
Microsoft Window 9X Operating System Richard Goldman © February 28, 2001.
CITA 171 Section 1 DOS/Windows Introduction. DOS Disk operating system (DOS) –Term most often associated with MS-DOS –Single-tasking operating system.
Silberschatz, Galvin and Gagne ©2009Operating System Concepts – 8 th Edition Chapter 4: Threads.
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 2 Introducing Operating Systems.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Chapter 4 – Thread Concepts
Chapter 3: Windows7 Part 5.
Windows 95 & 98 Steve Boyle Mike Forster Maggie Hamill Nancy O’Brien.
Chapter 4 – Thread Concepts
Process Management Presented By Aditya Gupta Assistant Professor
Unit OS2: Operating System Principles
Chapter 3: Windows7 Part 1.
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Chapter 3: Windows7 Part 5.
Chapter 2: The Linux System Part 2
Threads Chapter 4.
Outline Operating System Organization Operating System Examples
Presentation transcript:

Chapter Eleven Windows XP Professional Application Support

Objectives Understand the runtime environments and applications support in Windows XP Professional Understand the runtime environments and applications support in Windows XP Professional Deploy DOS, Win16, and Win32 applications Deploy DOS, Win16, and Win32 applications Fine-tune the application environment for DOS and Win16 executables Fine-tune the application environment for DOS and Win16 executables Understand how to assign and publish applications using Group Policy Understand how to assign and publish applications using Group Policy Address application compatibility issues Address application compatibility issues

Windows XP Professional System Architecture Fundamentally, the Windows XP Professional operating system incorporates three primary components: Fundamentally, the Windows XP Professional operating system incorporates three primary components: Environment subsystems Environment subsystems Executive Services Executive Services User applications User applications

Windows XP Professional System Architecture Environment subsystems offer runtime support for a variety of different kinds of applications Environment subsystems offer runtime support for a variety of different kinds of applications Executive Services and the underlying Windows XP kernel define the kernel mode for this operating system and its runtime environment Executive Services and the underlying Windows XP kernel define the kernel mode for this operating system and its runtime environment User applications provide the functionality and capabilities that rank Windows XP Professional among the most powerful network operating systems in use today User applications provide the functionality and capabilities that rank Windows XP Professional among the most powerful network operating systems in use today

Windows XP Professional System Architecture Figure 11-1: Components of the Windows XP Professional architecture

Kernel Mode Versus User Mode The main difference between kernel mode and user mode lies in how memory is used by kernel-mode components and user-mode components The main difference between kernel mode and user mode lies in how memory is used by kernel-mode components and user-mode components Processes running in user mode cannot access hardware or communicate with other processes directly Processes running in user mode cannot access hardware or communicate with other processes directly When code runs in the Windows XP kernel mode, it may access all hardware and memory in the computer When code runs in the Windows XP kernel mode, it may access all hardware and memory in the computer

Processes and Threads Process Process An environment in which the executable portion of a program runs, defining its memory usage, which processor to use, its object, and so forth An environment in which the executable portion of a program runs, defining its memory usage, which processor to use, its object, and so forth Thread Thread Executable portion of a program, with a priority based on the priority of its process Executable portion of a program, with a priority based on the priority of its process

Processes and Threads Figure 11-2: The Process tab in Task Manager displays all currently active Windows XP Professional processes

Processes and Threads Child processes Child processes Inherits operating characteristics from its parent subsystem Inherits operating characteristics from its parent subsystem Parent process Parent process Windows XP environment subsystem that creates a runtime process Windows XP environment subsystem that creates a runtime process Context Context Current collection of Registry values and runtime environment variables in which process or thread runs Current collection of Registry values and runtime environment variables in which process or thread runs

Environment Subsystems Windows XP Professional’s support for multiple runtime environments, also known as environment subsystems, confers numerous advantages Windows XP Professional’s support for multiple runtime environments, also known as environment subsystems, confers numerous advantages Local procedure call (LPC) Local procedure call (LPC) Technique to permit processes to exchange data in the Windows XP runtime environment Technique to permit processes to exchange data in the Windows XP runtime environment Dynamic link library (DLL) Dynamic link library (DLL) Collection of virtual procedure calls Collection of virtual procedure calls

Environment Subsystems Context switch Context switch Act of unloading the context information for one process and replacing it with the information for another Act of unloading the context information for one process and replacing it with the information for another To permit the operating system to run more efficiently, Windows XP avoids making context switches whenever possible To permit the operating system to run more efficiently, Windows XP avoids making context switches whenever possible

The Win32 Subsystem Win32 subsystem Win32 subsystem Operating environment that supports 32-bit Windows applications Operating environment that supports 32-bit Windows applications Is required to run Windows XP Is required to run Windows XP Also the foundation upon which virtual DOS machines (VDMs) rest Also the foundation upon which virtual DOS machines (VDMs) rest

Win32 Applications Environment subsystem Environment subsystem The Win32 subsystem is the main environment subsystem under Windows XP, and the only one required for operation The Win32 subsystem is the main environment subsystem under Windows XP, and the only one required for operation Multithreading Multithreading When a program’s process contains more than one thread, it is said to be a multithreaded processes When a program’s process contains more than one thread, it is said to be a multithreaded processes

Win32 Applications Memory space Memory space Section of code that modifies data structures used by several threads is called a critical section Section of code that modifies data structures used by several threads is called a critical section It is very important that a critical section never be overwritten by more than one thread at once It is very important that a critical section never be overwritten by more than one thread at once Application use Windows XP synchronization objects to prevent this from happening Application use Windows XP synchronization objects to prevent this from happening

Win32 Applications Input message queues Input message queues Queue for each process that contains the messages sent to the process from the user Queue for each process that contains the messages sent to the process from the user Base priorities Base priorities Lowest priority that a thread may be assigned Lowest priority that a thread may be assigned

Win32 Applications Figure 11-3: The Task Manager’s Process tab with priority options on display

DOS and the Virtual DOS Machine It is reasonable to describe two separate operating environments that can run within a VDM: It is reasonable to describe two separate operating environments that can run within a VDM: One supports straightforward DOS emulation and may be called the DOS operating environment One supports straightforward DOS emulation and may be called the DOS operating environment The other supports operation of Win16 applications within a VDM, and may be called the Win16 operating environment The other supports operation of Win16 applications within a VDM, and may be called the Win16 operating environment

DOS and the Virtual DOS Machine Figure 11-4: The Task Manager’s Process tab shows ntvdm.exe running when a 16-bit DOS application is loaded

VDM Components The VDM runs using the following files: The VDM runs using the following files: Ntio.sys Ntio.sys Ntdos.sys Ntdos.sys Ntvdm.exe Ntvdm.exe Ntvdm.dll Ntvdm.dll Redir.exe Redir.exe

Virtual Device Drivers (VDDs) DOS applications do not communicate directly with Windows XP drivers DOS applications do not communicate directly with Windows XP drivers Instead, a layer of VDDs underlies these applications, and they communicate with Windows XP 32-bit drivers Instead, a layer of VDDs underlies these applications, and they communicate with Windows XP 32-bit drivers VDDs are device drivers used by VDMs VDDs are device drivers used by VDMs

AUTOEXEC.BAT and CONFIG.SYS Figure 11-5: AUTOEXEC.NT as it appears in Notepad

AUTOEXEC.BAT and CONFIG.SYS Figure 11-6: CONFIG.NT as it appears in Notepad

AUTOEXEC.BAT and CONFIG.SYS Figure 11-7: The Registry Editor shows the variables defined within the …\Environment subkey

Custom DOS Environments Figure 11-8: MASTERMIND.EXE Properties, Programs tab

Custom DOS Environments Figure 11-9: MASTERMIND.EXE Properties Misc tab

Win16 Concepts and Applications Like DOS applications, Win16 applications also run in a VDM Like DOS applications, Win16 applications also run in a VDM Unlike DOS applications, all Win16 applications run in same VDM unless you specify otherwise Unlike DOS applications, all Win16 applications run in same VDM unless you specify otherwise This lets them act like Win32 applications This lets them act like Win32 applications This also lets multiple Win16 applications interact with one another within a single VDM This also lets multiple Win16 applications interact with one another within a single VDM

Win16 Concepts and Applications Multitasking Multitasking Sharing processor time between threads Sharing processor time between threads Win16-on-Win32 (WOW) Win16-on-Win32 (WOW) Name for collection of components, interfaces, and capabilities that permits Win32 subsystems to provide native support for well-behaved 16-bit Windows applications Name for collection of components, interfaces, and capabilities that permits Win32 subsystems to provide native support for well-behaved 16-bit Windows applications

Win16 Concepts and Applications Figure 11-10: The Task Manager Processes tab showing the wowexec environment

Win16-on-Win32 Components Wowexec.exe Wowexec.exe Wow32.dll Wow32.dll Mmtask.tsk Mmtask.tsk Ntvdm.exe, ntvdm.dll, ntio.sys, and redir.exe Ntvdm.exe, ntvdm.dll, ntio.sys, and redir.exe

Win16-on-Win32 Components Vdmredir.dll Vdmredir.dll Krnl386.exe Krnl386.exe Gdi.exe Gdi.exe User.exe User.exe

Memory Space Separate and shared memory Separate and shared memory The “lose one, lose them all” effect of a single shared VDM explains why you might choose to run Win16 applications in separate VDMs The “lose one, lose them all” effect of a single shared VDM explains why you might choose to run Win16 applications in separate VDMs Disadvantages of running Win16 applications in separate memory spaces hinge on memory usage and interprocess communications Disadvantages of running Win16 applications in separate memory spaces hinge on memory usage and interprocess communications Message queues Message queues All Win16 applications running in a single process share a message queue All Win16 applications running in a single process share a message queue

Memory Space Threads Threads All application threads within a WOW VDM are cooperatively multitasked All application threads within a WOW VDM are cooperatively multitasked Using only well-behaved DOS and Win16 applications Using only well-behaved DOS and Win16 applications In Windows XP terminology, any application that attempts direct access to hardware is called “ill- behaved” In Windows XP terminology, any application that attempts direct access to hardware is called “ill- behaved” Such applications will not run in a VDM Such applications will not run in a VDM

Program Compatibility Wizard Figure 11-11: The Program Compatibility Wizard starts with a welcome screen, then guides you through automated compatibility checks

Program Compatibility Wizard Figure 11-12: Compatibility mode settings are selected from a specific list of available options

Program Compatibility Wizard Figure 11-13: The Compatibility tab in the Properties window for any executable file provides direct access to the same controls offered through the Program Compatibility Wizard

Assigning and Publishing Applications on Windows XP Professional Package Package File that contains instructions for the Windows Installer File that contains instructions for the Windows Installer Transform Transform Specific type of Microsoft Installer file that usually ends in.mst Specific type of Microsoft Installer file that usually ends in.mst

Resolving DLL Conflicts in Windows XP Windows XP includes a remarkable new technology called Windows Side by Side (WinSxS) isolation support Windows XP includes a remarkable new technology called Windows Side by Side (WinSxS) isolation support By default, Windows checks DLLs and other common code components before installing them on a computer By default, Windows checks DLLs and other common code components before installing them on a computer If it finds potential conflicts, it automatically makes the Registry modifications necessary to point to alternate versions of DLLs and other shared objects in a special directory named %systemroot%\WINDOWS\WinSxS If it finds potential conflicts, it automatically makes the Registry modifications necessary to point to alternate versions of DLLs and other shared objects in a special directory named %systemroot%\WINDOWS\WinSxS

Chapter Summary Windows XP Professional is divided into three main parts: Windows XP Professional is divided into three main parts: Environment subsystems Environment subsystems Executive Services Executive Services User applications User applications In addition to the basic Win32 Subsystem, two special- purpose operating environments (VDM and WOW) also run within that subsystem to provide backward compatibility for DOS and Win16 applications In addition to the basic Win32 Subsystem, two special- purpose operating environments (VDM and WOW) also run within that subsystem to provide backward compatibility for DOS and Win16 applications

Chapter Summary Of these subsystems, only Win32 is crucial to the functioning of Windows XP as a whole Of these subsystems, only Win32 is crucial to the functioning of Windows XP as a whole The other subsystems start up only as they are needed The other subsystems start up only as they are needed Windows XP includes some interesting additional application management facilities Windows XP includes some interesting additional application management facilities