SlideShare una empresa de Scribd logo
1 de 18
Windows XP Interface
Content
 History
 Process concurrency control
 Process scheduling
 Thread management
 I/O management
 Memory management
History
 On 25 August 2001, Microsoft released Windows XP.
 The merging of the Windows NT/2000 and Windows
95/98/Me lines was finally achieved with Windows XP.
 Windows XP uses the Windows NT 5.1 kernel, marking the
entrance of the Windows NT core to the consumer market, to
replace the aging 16/32-bit branch
Process Concurrency & control
 “Thread” of execution
 Independent Fetch/Decode/Execute loop
 Operating in some Address space
 Uniprogramming: one thread at a time
Batch processing:
 Easier for operating system builder
 Get rid concurrency by defining it away
 Multiprogramming: more than one thread at a time
 Often called “multitasking”, but multitasking has other
meanings
The Basic Problem of Concurrency The basic problem of concurrency involves resources:
 Hardware: single CPU, single DRAM, single I/O devices
 Multiprogramming API: users think they have exclusive
access to machine
 OS Has to coordinate all activity
 Multiple users, I/O interrupts, …
 How can keep this straight?
 Basic Idea: Use Virtual Machine abstraction
 Decompose hard problem into simpler ones
 Abstract the notion of an executing program
 Then, worry about multiplexing these abstract machines
Process Scheduling
Windows XP uses a quantum-based, preemptive, priority
scheduling algorithm.
Threads are scheduled rather than processes.
Since the preemptive priority algorithm is implemented with
multiple queues, it can also be considered a multiple feedback-
queue algorithm.
Preemption can occur for any of 4 reasons:
-higher-priority thread becomes ready
-thread terminates
-time quantum exhausted
-thread performs a blocking system call, such as for I/O, in which
case it leaves the READY state and enters a WAITING state.
Schedulling process in xp

 In XP ,32 priority levels are used, where priority 31 is the
highest priority and priority 0 is the lowest priority.
 Threads in the real-time class have fixed priorities.
 If no ready thread exists, the idle thread is run.
 When a thread becomes READY after WAITING, it is given a
priority boost, with the largest boost for waiting for keyboard
I/O and a smaller boost for waiting for disk.
Thread Management
 The Windows XP API thread library supports the one-to-one
thread model.
 It also provides the fiber library, which supports the many-to-
many model.
 Thread components include:
-Thread ID
-Registers
A user stack used in user mode, and a kernel stack used in
kernel mode.
 A private storage area used by various run-time libraries and
dynamic link libraries ( DLLs ).
 The key data structures for Windows threads are the
ETHREAD ,KTHREAD, and the TEB.
 The ETHREAD and KTHREAD structures exist entirely
within kernel space, and hence are only accessible by the
kernel, whereas the TEB lies within user space.
Input Output Management
I/O Management
 The I/O manager is responsible for file systems, device
,drivers and network drivers.
 The I/O manager keeps track of which device drivers, filter
drivers and file systems are loaded and manages buffers for
I/O requests.
 It assists in providing memory mapped file I/O and controls
the cache manager for the whole I/O system.
I/O Management
 Programmed I/O
 Processor issues I/O command, waits for the operation to
complete
 Often handles I/O transfer details
 Interrupt-Driven I/O
 Processors issues I/O command, then proceeds to another
process or thread
 Device interrupts the CPU when the data is ready to be
moved to memory
 Direct Memory Access (DMA)
 Processor issues I/O command
 Device transfers data to/from memory (CPU will wait for
memory)
 Device interrupts the CPU when the I/O transfer is
completed
Memory Management
 User memory can be allocated according to several schemes:
virtual memory, memory-mapped files, heaps, and thread-
local storage .
 Windows XP supports a larger system Virtual Address Space -
1.3 GB, of which the contiguous virtual address space that can
be used by device drivers is 960 MB.
 In Windows XP, the Prototype PTEs(Page Table entries) are
allocated for active views only, allowing larger mapped files .
Memory mangement in xp
 Windows XP introduces
the ”CreateMemoryResourceNotification” function which can
notify user mode processes of high or low memory
availability so applications can allocate more memory or free
up memory as necessary.
 The kernel page protection limit in Windows XP is enabled
on systems up to 256 MB of RAM beyond which large
pages are enabled for increased address translation
performance.
 Windows XP uses the SYSENTER/SYSEXIT mechanisms
which require fewer clock cycles to transition to and
from user mode to kernel mode to speed up system calls.
Thank You

Más contenido relacionado

La actualidad más candente

Os structure
Os structureOs structure
Os structureMohd Arif
 
History and development.2
History and development.2History and development.2
History and development.2Ali Mian
 
presentation on windows os
presentation on windows ospresentation on windows os
presentation on windows osste1fire
 
Ubuntu tutorial slides
Ubuntu tutorial slidesUbuntu tutorial slides
Ubuntu tutorial slidesTrung Nguyen
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt onu9
 
Evolution of operating system
Evolution of operating systemEvolution of operating system
Evolution of operating systemArshad khan
 
Process management in os
Process management in osProcess management in os
Process management in osMiong Lazaro
 
Processes in unix
Processes in unixProcesses in unix
Processes in unixmiau_max
 
Presentation Introduction to Windows
Presentation  Introduction to  WindowsPresentation  Introduction to  Windows
Presentation Introduction to WindowsMJ Ferdous
 
slideshow about windows xp and features
slideshow about windows xp and featuresslideshow about windows xp and features
slideshow about windows xp and featuresJerick Merueñas
 
Course 101: Lecture 1: Introduction to Embedded Systems
Course 101: Lecture 1: Introduction to Embedded SystemsCourse 101: Lecture 1: Introduction to Embedded Systems
Course 101: Lecture 1: Introduction to Embedded SystemsAhmed El-Arabawy
 
Introduction to computer hardware
Introduction to computer hardwareIntroduction to computer hardware
Introduction to computer hardwareK. A. M Lutfullah
 
Linux System Programming - File I/O
Linux System Programming - File I/O Linux System Programming - File I/O
Linux System Programming - File I/O YourHelper1
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in DetailDamian T. Gordon
 

La actualidad más candente (20)

Os structure
Os structureOs structure
Os structure
 
History and development.2
History and development.2History and development.2
History and development.2
 
presentation on windows os
presentation on windows ospresentation on windows os
presentation on windows os
 
Ubuntu tutorial slides
Ubuntu tutorial slidesUbuntu tutorial slides
Ubuntu tutorial slides
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Operating System.pdf
Operating System.pdfOperating System.pdf
Operating System.pdf
 
Evolution of operating system
Evolution of operating systemEvolution of operating system
Evolution of operating system
 
Process management in os
Process management in osProcess management in os
Process management in os
 
Processes in unix
Processes in unixProcesses in unix
Processes in unix
 
Presentation Introduction to Windows
Presentation  Introduction to  WindowsPresentation  Introduction to  Windows
Presentation Introduction to Windows
 
File system
File systemFile system
File system
 
slideshow about windows xp and features
slideshow about windows xp and featuresslideshow about windows xp and features
slideshow about windows xp and features
 
Course 101: Lecture 1: Introduction to Embedded Systems
Course 101: Lecture 1: Introduction to Embedded SystemsCourse 101: Lecture 1: Introduction to Embedded Systems
Course 101: Lecture 1: Introduction to Embedded Systems
 
Introduction to computer hardware
Introduction to computer hardwareIntroduction to computer hardware
Introduction to computer hardware
 
Cs1 3-operating systems
Cs1 3-operating systemsCs1 3-operating systems
Cs1 3-operating systems
 
Linux System Programming - File I/O
Linux System Programming - File I/O Linux System Programming - File I/O
Linux System Programming - File I/O
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Introduction to Windows XP
Introduction to Windows XPIntroduction to Windows XP
Introduction to Windows XP
 
Windows 7
Windows 7Windows 7
Windows 7
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in Detail
 

Similar a Windows xp (20)

Windows xp
Windows xpWindows xp
Windows xp
 
Unix fundamentals
Unix fundamentalsUnix fundamentals
Unix fundamentals
 
Visual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & VirtualisationVisual comparison of Unix-like systems & Virtualisation
Visual comparison of Unix-like systems & Virtualisation
 
Os concepts
Os conceptsOs concepts
Os concepts
 
Introduction To operating System:
Introduction To operating System:Introduction To operating System:
Introduction To operating System:
 
introduce computer .pptx
introduce computer .pptxintroduce computer .pptx
introduce computer .pptx
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
Section02-Structures.ppt
Section02-Structures.pptSection02-Structures.ppt
Section02-Structures.ppt
 
01.osdoc
01.osdoc01.osdoc
01.osdoc
 
Windows XP
Windows XPWindows XP
Windows XP
 
Chapter - 1
Chapter - 1Chapter - 1
Chapter - 1
 
Introduction to parallel computing
Introduction to parallel computingIntroduction to parallel computing
Introduction to parallel computing
 
Studies
StudiesStudies
Studies
 
Unix case-study
Unix case-studyUnix case-study
Unix case-study
 
Window ce
Window ceWindow ce
Window ce
 
Chapter 22 - Windows XP
Chapter 22 - Windows XPChapter 22 - Windows XP
Chapter 22 - Windows XP
 
Itk rawa t____operatingsystems2
Itk rawa t____operatingsystems2Itk rawa t____operatingsystems2
Itk rawa t____operatingsystems2
 
Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2Operating System 4 1193308760782240 2
Operating System 4 1193308760782240 2
 
Operating System 4
Operating System 4Operating System 4
Operating System 4
 

Más de aditi sehgal

Nism series-iv-interest rate derivatives workbook (october 2014)
Nism series-iv-interest rate derivatives workbook (october 2014)Nism series-iv-interest rate derivatives workbook (october 2014)
Nism series-iv-interest rate derivatives workbook (october 2014)aditi sehgal
 
Nism series-i--currency-derivative-exam-workbook
Nism series-i--currency-derivative-exam-workbookNism series-i--currency-derivative-exam-workbook
Nism series-i--currency-derivative-exam-workbookaditi sehgal
 
Satellite communication
Satellite communicationSatellite communication
Satellite communicationaditi sehgal
 
walmart closes up their shops in germany
walmart closes up their shops in germanywalmart closes up their shops in germany
walmart closes up their shops in germanyaditi sehgal
 
Taj group os hotels marketing strategies
Taj group os hotels marketing strategiesTaj group os hotels marketing strategies
Taj group os hotels marketing strategiesaditi sehgal
 
walt disney strategy management
walt disney strategy managementwalt disney strategy management
walt disney strategy managementaditi sehgal
 
oglivy marketing strategies
oglivy marketing strategies oglivy marketing strategies
oglivy marketing strategies aditi sehgal
 

Más de aditi sehgal (7)

Nism series-iv-interest rate derivatives workbook (october 2014)
Nism series-iv-interest rate derivatives workbook (october 2014)Nism series-iv-interest rate derivatives workbook (october 2014)
Nism series-iv-interest rate derivatives workbook (october 2014)
 
Nism series-i--currency-derivative-exam-workbook
Nism series-i--currency-derivative-exam-workbookNism series-i--currency-derivative-exam-workbook
Nism series-i--currency-derivative-exam-workbook
 
Satellite communication
Satellite communicationSatellite communication
Satellite communication
 
walmart closes up their shops in germany
walmart closes up their shops in germanywalmart closes up their shops in germany
walmart closes up their shops in germany
 
Taj group os hotels marketing strategies
Taj group os hotels marketing strategiesTaj group os hotels marketing strategies
Taj group os hotels marketing strategies
 
walt disney strategy management
walt disney strategy managementwalt disney strategy management
walt disney strategy management
 
oglivy marketing strategies
oglivy marketing strategies oglivy marketing strategies
oglivy marketing strategies
 

Último

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 

Último (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Windows xp

  • 1.
  • 3. Content  History  Process concurrency control  Process scheduling  Thread management  I/O management  Memory management
  • 4. History  On 25 August 2001, Microsoft released Windows XP.  The merging of the Windows NT/2000 and Windows 95/98/Me lines was finally achieved with Windows XP.  Windows XP uses the Windows NT 5.1 kernel, marking the entrance of the Windows NT core to the consumer market, to replace the aging 16/32-bit branch
  • 5. Process Concurrency & control  “Thread” of execution  Independent Fetch/Decode/Execute loop  Operating in some Address space  Uniprogramming: one thread at a time Batch processing:  Easier for operating system builder  Get rid concurrency by defining it away  Multiprogramming: more than one thread at a time  Often called “multitasking”, but multitasking has other meanings
  • 6. The Basic Problem of Concurrency The basic problem of concurrency involves resources:  Hardware: single CPU, single DRAM, single I/O devices  Multiprogramming API: users think they have exclusive access to machine  OS Has to coordinate all activity  Multiple users, I/O interrupts, …  How can keep this straight?  Basic Idea: Use Virtual Machine abstraction  Decompose hard problem into simpler ones  Abstract the notion of an executing program  Then, worry about multiplexing these abstract machines
  • 7. Process Scheduling Windows XP uses a quantum-based, preemptive, priority scheduling algorithm. Threads are scheduled rather than processes. Since the preemptive priority algorithm is implemented with multiple queues, it can also be considered a multiple feedback- queue algorithm. Preemption can occur for any of 4 reasons: -higher-priority thread becomes ready -thread terminates -time quantum exhausted -thread performs a blocking system call, such as for I/O, in which case it leaves the READY state and enters a WAITING state.
  • 9.   In XP ,32 priority levels are used, where priority 31 is the highest priority and priority 0 is the lowest priority.  Threads in the real-time class have fixed priorities.  If no ready thread exists, the idle thread is run.  When a thread becomes READY after WAITING, it is given a priority boost, with the largest boost for waiting for keyboard I/O and a smaller boost for waiting for disk.
  • 10. Thread Management  The Windows XP API thread library supports the one-to-one thread model.  It also provides the fiber library, which supports the many-to- many model.  Thread components include: -Thread ID -Registers A user stack used in user mode, and a kernel stack used in kernel mode.
  • 11.  A private storage area used by various run-time libraries and dynamic link libraries ( DLLs ).  The key data structures for Windows threads are the ETHREAD ,KTHREAD, and the TEB.  The ETHREAD and KTHREAD structures exist entirely within kernel space, and hence are only accessible by the kernel, whereas the TEB lies within user space.
  • 13. I/O Management  The I/O manager is responsible for file systems, device ,drivers and network drivers.  The I/O manager keeps track of which device drivers, filter drivers and file systems are loaded and manages buffers for I/O requests.  It assists in providing memory mapped file I/O and controls the cache manager for the whole I/O system.
  • 14. I/O Management  Programmed I/O  Processor issues I/O command, waits for the operation to complete  Often handles I/O transfer details  Interrupt-Driven I/O  Processors issues I/O command, then proceeds to another process or thread  Device interrupts the CPU when the data is ready to be moved to memory  Direct Memory Access (DMA)  Processor issues I/O command  Device transfers data to/from memory (CPU will wait for memory)  Device interrupts the CPU when the I/O transfer is completed
  • 15. Memory Management  User memory can be allocated according to several schemes: virtual memory, memory-mapped files, heaps, and thread- local storage .  Windows XP supports a larger system Virtual Address Space - 1.3 GB, of which the contiguous virtual address space that can be used by device drivers is 960 MB.  In Windows XP, the Prototype PTEs(Page Table entries) are allocated for active views only, allowing larger mapped files .
  • 17.  Windows XP introduces the ”CreateMemoryResourceNotification” function which can notify user mode processes of high or low memory availability so applications can allocate more memory or free up memory as necessary.  The kernel page protection limit in Windows XP is enabled on systems up to 256 MB of RAM beyond which large pages are enabled for increased address translation performance.  Windows XP uses the SYSENTER/SYSEXIT mechanisms which require fewer clock cycles to transition to and from user mode to kernel mode to speed up system calls.