100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS3721 - Operating System and Architecture Summary R69,90
Add to cart

Summary

COS3721 - Operating System and Architecture Summary

 31 views  1 purchase

This is a summary of COS3721 - Operating System and Architecture module from UNISA. Chapters Covered: 2 - 18

Preview 4 out of 84  pages

  • No
  • Chapter 2 to 18
  • March 7, 2022
  • 84
  • 2021/2022
  • Summary
book image

Book Title:

Author(s):

  • Edition:
  • ISBN:
  • Edition:
All documents for this subject (31)
avatar-seller
raynohattingh
1



Ch 2: Operating System Structures 8
OS Services 8
User and OS Interface 8
Command Interpreters 8
GUI 8
Touch Screen 9
System Calls 10
API 10
Types of System Calls 10
Process Control 10
File Management 10
Device management 10
Information maintenance 10
Communications 10
Protection 10
System Services 11
Linkers & Loaders 11
OS Structure 12
Monolithic Structure 12
Layered Approach 12
Microkernels 12
Modules 12
Hybrid Systems 13

Ch 3: Processes 14
Process Concept 14
The Process 14
Process State 14
Process Control Block 14
Thread 14
Process Scheduling 14
Scheduling Queues 14
CPU Scheduling 15
Operation on Processes 15
Process Creation 15
Process Termination 15
Inter Process Communication 16
IPC in Shared-Memory Systems 16
IPC in Message-Passing Systems 16

Ch 4: Threads & Concurrency 16
Benefits 17
Multicore Programming 17
Programming Challenges 17

, 2
Admahl’s Law 17
Types of Parallelism 17
Multithreading Models 17
Many-to-One Model 18
One-to-One Model 18
Many-to-Many Model 19
Threaded Libraries 19
Implicit Threading 19
Thread pools 19
Fork Join 19
OpenMP 19
Grand Central Dispatch (GCD) 20
Intel Thread Building Blocks (TBB) 20
Threading Issues 20
The fork() and exec() System Calls 20
Signal Handling 20
Thread Cancelation 20
Thread-Local Storage (TLS) 21
Scheduler Activations 21

Ch 5: CPU Scheduling 21
Basic Concepts 21
CPU – I/O Burst Cycle 21
CPU Scheduler 21
Preemptive and Nonpreemptive Scheduling 21
Dispatcher 22
Scheduling Criteria 22
Scheduling Algorithms 22
First-Come, First-Served Scheduling (FCFS) 22
Shortest-Job-First Scheduling (SJF) 22
Round-Robin Scheduling (RR) 22
Priority Scheduling 23
Multilevel Queue Scheduling 23
Multilevel Feedback Queue Scheduling 23
Multiprocessor Scheduling 24
Approaches to Multiple-Processor Scheduling 24
Multicore Processors 24
Load Balancing 24
Processor Affinity 24
Heterogeneous Multiprocessing (HMP) 25
Real-Time CPU Scheduling 25
Minimizing Latency 25
Rate-Monotonic Scheduling 25
Earliest-Deadline-First Scheduling 26
Proportional Share Scheduling 26

, 3

Ch 6: Synchronization Tools 26
The Critical-Section Problem 26
Peterson’s Solution 27
Hardware Support for Synchronization 27
Memory Barriers 27
Hardware Instructions 28
test_and_set() (TAS) 28
compare_and_swap() (CAS) 28
Atomic Variables 29
Mutex Locks 29
Semaphores 29
Monitors 29
Monitor Usage 29
Liveness 30
Deadlock 30
Priority Inversion 31
Evaluation 31

CH 7: synchronization Examples 31
Classic Problems of Synchronization 32
The Bounded-Buffer Problem 32
The Readers-Writers Problem 32
The Dining-Philosophers Problem 32
Synchronization within the Kernel 32
Sync in Windows 33
Sync in Linux 33
POSIX Sync (Pthreads) 33
Mutex Locks 33
Semaphores 34
Condition Variables 34

Ch 8: Deadlocks 34
System Model 35
Deadlock in Multithreaded Applications 35
Livelock 35
Deadlock Characterization 35
Necessary Conditions 35
Resource-Allocation Graph 35
Methods for Handling Deadlocks 36
Deadlock Prevention 36
Mutual Exclusion 36
Hold and Wait 36
No Preemption 36
Circular Wait 36
Deadlock Avoidance 36
Safe State 37

, 4
Resource-Allocation-Graph Algorithm 37
Banker’s Algorithm 37
Deadlock Detection 38
Single Instance of Each Resource Type 38
Several Instances of a Resource Type 38
Detection-Algorithm Usage 38
Recovery from Deadlock 38
Process and Thread Termination 38
Resource Preemption 38

Ch 9: Main Memory 39
Contiguous Memory Allocation 39
Memory Protection 39
Memory Allocation 40
Fragmentation 40
Paging 40
Basic Method 41
Hardware Support 41
Protection 42
Shared Pages 42
Structure of the Page Table 42
Hierarchical Paging 42
Hashed Page Tables 42
Inverted Page Tables 42
Swapping 43
Standard Swapping 43
Swapping with Paging 43
Swapping on Mobile Systems 44

Ch 10: Virtual Memory 44
Demand Paging 44
Basic Concepts 44
Free-Frame List 45
Performance of Demand Paging 45
Copy-on-Write 45
Page Replacement 45
Basic Page Replacement 46
FIFO Page Replacement 46
Optimal Page Replacement (OPT or MIN) 46
LRU Page Replacement 46
Counting-Based Page Replacement 47
least frequently used (LFU) 47
most frequently used (MFU) 47
Allocation of Frames 47
Minimum Number of Frames 47
Allocation Algorithms 47

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller raynohattingh. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R69,90. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53068 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R69,90  1x  sold
  • (0)
Add to cart
Added