SlideShare a Scribd company logo
1 of 16
Operating System
Topic
Windows 7 Architecture
Presented By
Daniyal Khan
Haris Mobeen Ahmed
Hammad Jameel Syed
Adeel Awan
Nasir Ali
History
Windows 7 is a personal computer operating
system developed by Microsoft. It is a part of
the Windows NT family of operating
systems. Windows 7 was released on July
22, 2009, and became generally available on
October 22, 2009.
Description of Windows
Architecture
Layered Architecture
• Kernel layer runs in protected mode and
provides access to the CPU by supporting
threads, interrupts, and traps.
• Executive runs in protected mode above the
Kernel layer and, provides the basic system
services.
• On top of the executive, environmental
subsystems operate in user mode providing
different OS APIs
Portability
• Windows 7 can be moved from on
hardware platform to another with
relatively few changes
• Written in C and C++
• Platform-dependent code is isolated in a
dynamic link library (DLL) called the
“hardware abstraction layer” (HAL)
System Components
„Four main responsibilities:
1. Thread scheduling
2. Interrupt and exception handling
3. Low-level processor synchronization
4. Recovery after a power failure
System Components
Kernel is object-oriented, uses two sets of objects
1. Dispatcher objects control dispatching and
synchronization (events, mutants, murexes,
semaphores, threads and timers)
2. Control objects (asynchronous procedure calls,
interrupts, power notify, process and profile
objects)
Processes & Threads
 „The process has a virtual memory address
space, information (such as a base priority), and
an affinity for one or more processors.
 Threads are the unit of execution scheduled by
the kernel’s dispatcher.
 Each thread has its own state, including a
priority, processor affinity, and accounting
information.
 A thread can be one of six states: ready, standby,
running, waiting, transition, and terminated.
Kernel Scheduling
„Characteristics of Windows 7’s priority strategy:
 Gives very good response times to interactive
threads that are using the mouse and windows
 Enables I/O-bound threads to keep the I/O
devices busy
 Compute-bound threads soak up the spare CPU
cycles in the background
Object Manager
 Windows 7 uses objects for all its services and
entities; the object manager supervises the use of all
the objects
1. Generates an object handle used by applications to
refer to objects
2. Checks security
3. Keeps track of which processes are using each
object „
 Objects are manipulated by a standard set of
methods, namely create, open, close, delete, query-
name, parse and security.
Virtual Memory
Management
 The design of the VM manager assumes that the
underlying hardware supports virtual to physical
mapping, a paging mechanism, transparent
cache coherence on multiprocessor systems, and
virtual address aliasing.
 The VM manager in Windows uses a page-based
management scheme with a page size of 4 KB for
both x86 and AMD64.
File System
 The fundamental structure of the Windows 7 file system
(NTFS) is a volume
1. Created by the Windows disk administrator utility
2. Based on a logical disk partition
3. May occupy a portions of a disk, an entire disk, or span
across several disks „
 All metadata, such as information about the volume, is stored
in a regular file „NTFS uses clusters as the underlying unit of
disk allocation
1. A cluster is a number of disk sectors that is a power of two
2. Because the cluster size is smaller than for the older 16-bit
FAT file system, the amount of internal fragmentation is
reduced
Memory Management
 Virtual memory:
1. Virtual Allot reserves or commits virtual memory
2. Virtual Free DE commits or releases the memory
3. These functions enable the application to
determine the virtual address at which the memory
is allocated
 An application can use memory by memory mapping
a file into its address space
1. Multistage process.
2. Two processes share memory by mapping the same
file into their virtual memory.
Memory Management
 A heap in the Win32 environment is a region of reserved
address space.
1. A Win 32 process is created with a 1 MB default heap.
2. Access is synchronized to protect the heap’s space
allocation data structures from damage by concurrent
updates by multiple threads.
 Because functions that rely on global or static data
typically fail to work properly in a multithreaded
environment, the thread-local storage mechanism
allocates global storage on a per-thread basis.
1. The mechanism provides both dynamic and static
methods of creating thread-local storage
Windows 7 Architecture

More Related Content

What's hot

Compiler Design
Compiler DesignCompiler Design
Compiler DesignMir Majid
 
Evolving role of Software
Evolving role of SoftwareEvolving role of Software
Evolving role of SoftwareShankar Dahal
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolStacksol
 
Interpreters & Debuggers
Interpreters  &  DebuggersInterpreters  &  Debuggers
Interpreters & DebuggersMalek Sumaiya
 
Loaders ( system programming )
Loaders ( system programming ) Loaders ( system programming )
Loaders ( system programming ) Adarsh Patel
 
File system Os
File system OsFile system Os
File system OsNehal Naik
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsKuber Chandra
 
Software Engineering Assignment
Software Engineering AssignmentSoftware Engineering Assignment
Software Engineering AssignmentSohaib Latif
 
VIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docxVIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docxkumari36
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating SystemsRitu Ranjan Shrivastwa
 
Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating SystemJanki Shah
 

What's hot (20)

Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
Evolving role of Software
Evolving role of SoftwareEvolving role of Software
Evolving role of Software
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Windows Architecture Explained by Stacksol
Windows Architecture Explained by StacksolWindows Architecture Explained by Stacksol
Windows Architecture Explained by Stacksol
 
System calls
System callsSystem calls
System calls
 
Interpreters & Debuggers
Interpreters  &  DebuggersInterpreters  &  Debuggers
Interpreters & Debuggers
 
Loaders ( system programming )
Loaders ( system programming ) Loaders ( system programming )
Loaders ( system programming )
 
Loaders
LoadersLoaders
Loaders
 
Cs8493 unit 5
Cs8493 unit 5Cs8493 unit 5
Cs8493 unit 5
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Unit 3
Unit 3Unit 3
Unit 3
 
File system Os
File system OsFile system Os
File system Os
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) Basics
 
Software Engineering Assignment
Software Engineering AssignmentSoftware Engineering Assignment
Software Engineering Assignment
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
VIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docxVIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docx
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 

Similar to Windows 7 Architecture

Similar to Windows 7 Architecture (20)

Os file
Os fileOs file
Os file
 
linux kernel overview 2013
linux kernel overview 2013linux kernel overview 2013
linux kernel overview 2013
 
Windows 2000
Windows 2000Windows 2000
Windows 2000
 
Chapter 22 - Windows XP
Chapter 22 - Windows XPChapter 22 - Windows XP
Chapter 22 - Windows XP
 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
 
OS_Ch21
OS_Ch21OS_Ch21
OS_Ch21
 
Ch21 OS
Ch21 OSCh21 OS
Ch21 OS
 
OSCh21
OSCh21OSCh21
OSCh21
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 
ITT Project Information Technology Basic
ITT Project Information Technology BasicITT Project Information Technology Basic
ITT Project Information Technology Basic
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Win 7 Tuto.ppt
Win 7 Tuto.pptWin 7 Tuto.ppt
Win 7 Tuto.ppt
 
Linux internal
Linux internalLinux internal
Linux internal
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
 
Lecture 3,4 operating systems
Lecture 3,4   operating systemsLecture 3,4   operating systems
Lecture 3,4 operating systems
 
Section02-Structures.ppt
Section02-Structures.pptSection02-Structures.ppt
Section02-Structures.ppt
 

More from Daniyal Khan

Risk Controlling in ISM
Risk Controlling in ISMRisk Controlling in ISM
Risk Controlling in ISMDaniyal Khan
 
Network News Transfer Protocol
Network News Transfer ProtocolNetwork News Transfer Protocol
Network News Transfer ProtocolDaniyal Khan
 
Introducing a new product in a market.
Introducing a new product in a market.Introducing a new product in a market.
Introducing a new product in a market.Daniyal Khan
 
Qualities Of A Good Leader
Qualities Of A Good LeaderQualities Of A Good Leader
Qualities Of A Good LeaderDaniyal Khan
 
Condition Statement
Condition StatementCondition Statement
Condition StatementDaniyal Khan
 
Fiber Optics Technology
Fiber Optics TechnologyFiber Optics Technology
Fiber Optics TechnologyDaniyal Khan
 

More from Daniyal Khan (9)

My Mechanic
My MechanicMy Mechanic
My Mechanic
 
Risk Controlling in ISM
Risk Controlling in ISMRisk Controlling in ISM
Risk Controlling in ISM
 
Network News Transfer Protocol
Network News Transfer ProtocolNetwork News Transfer Protocol
Network News Transfer Protocol
 
Introducing a new product in a market.
Introducing a new product in a market.Introducing a new product in a market.
Introducing a new product in a market.
 
Honda
HondaHonda
Honda
 
Qualities Of A Good Leader
Qualities Of A Good LeaderQualities Of A Good Leader
Qualities Of A Good Leader
 
Condition Statement
Condition StatementCondition Statement
Condition Statement
 
E-mail System
E-mail SystemE-mail System
E-mail System
 
Fiber Optics Technology
Fiber Optics TechnologyFiber Optics Technology
Fiber Optics Technology
 

Recently uploaded

Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Roomdivyansh0kumar0
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 

Recently uploaded (20)

Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 

Windows 7 Architecture

  • 1.
  • 2. Operating System Topic Windows 7 Architecture Presented By Daniyal Khan Haris Mobeen Ahmed Hammad Jameel Syed Adeel Awan Nasir Ali
  • 3. History Windows 7 is a personal computer operating system developed by Microsoft. It is a part of the Windows NT family of operating systems. Windows 7 was released on July 22, 2009, and became generally available on October 22, 2009.
  • 5. Layered Architecture • Kernel layer runs in protected mode and provides access to the CPU by supporting threads, interrupts, and traps. • Executive runs in protected mode above the Kernel layer and, provides the basic system services. • On top of the executive, environmental subsystems operate in user mode providing different OS APIs
  • 6. Portability • Windows 7 can be moved from on hardware platform to another with relatively few changes • Written in C and C++ • Platform-dependent code is isolated in a dynamic link library (DLL) called the “hardware abstraction layer” (HAL)
  • 7. System Components „Four main responsibilities: 1. Thread scheduling 2. Interrupt and exception handling 3. Low-level processor synchronization 4. Recovery after a power failure
  • 8. System Components Kernel is object-oriented, uses two sets of objects 1. Dispatcher objects control dispatching and synchronization (events, mutants, murexes, semaphores, threads and timers) 2. Control objects (asynchronous procedure calls, interrupts, power notify, process and profile objects)
  • 9. Processes & Threads  „The process has a virtual memory address space, information (such as a base priority), and an affinity for one or more processors.  Threads are the unit of execution scheduled by the kernel’s dispatcher.  Each thread has its own state, including a priority, processor affinity, and accounting information.  A thread can be one of six states: ready, standby, running, waiting, transition, and terminated.
  • 10. Kernel Scheduling „Characteristics of Windows 7’s priority strategy:  Gives very good response times to interactive threads that are using the mouse and windows  Enables I/O-bound threads to keep the I/O devices busy  Compute-bound threads soak up the spare CPU cycles in the background
  • 11. Object Manager  Windows 7 uses objects for all its services and entities; the object manager supervises the use of all the objects 1. Generates an object handle used by applications to refer to objects 2. Checks security 3. Keeps track of which processes are using each object „  Objects are manipulated by a standard set of methods, namely create, open, close, delete, query- name, parse and security.
  • 12. Virtual Memory Management  The design of the VM manager assumes that the underlying hardware supports virtual to physical mapping, a paging mechanism, transparent cache coherence on multiprocessor systems, and virtual address aliasing.  The VM manager in Windows uses a page-based management scheme with a page size of 4 KB for both x86 and AMD64.
  • 13. File System  The fundamental structure of the Windows 7 file system (NTFS) is a volume 1. Created by the Windows disk administrator utility 2. Based on a logical disk partition 3. May occupy a portions of a disk, an entire disk, or span across several disks „  All metadata, such as information about the volume, is stored in a regular file „NTFS uses clusters as the underlying unit of disk allocation 1. A cluster is a number of disk sectors that is a power of two 2. Because the cluster size is smaller than for the older 16-bit FAT file system, the amount of internal fragmentation is reduced
  • 14. Memory Management  Virtual memory: 1. Virtual Allot reserves or commits virtual memory 2. Virtual Free DE commits or releases the memory 3. These functions enable the application to determine the virtual address at which the memory is allocated  An application can use memory by memory mapping a file into its address space 1. Multistage process. 2. Two processes share memory by mapping the same file into their virtual memory.
  • 15. Memory Management  A heap in the Win32 environment is a region of reserved address space. 1. A Win 32 process is created with a 1 MB default heap. 2. Access is synchronized to protect the heap’s space allocation data structures from damage by concurrent updates by multiple threads.  Because functions that rely on global or static data typically fail to work properly in a multithreaded environment, the thread-local storage mechanism allocates global storage on a per-thread basis. 1. The mechanism provides both dynamic and static methods of creating thread-local storage