Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

COS3721 Assignment 2 (COMPLETE ANSWERS) 2026

Document preview thumbnail
Preview 3 out of 25 pages

Operating Systems and Architecture - COS3721 Assignment 2 2026 - Due 1 July 2026; 100 % TRUSTED workings, Expert Solved, Explanations and Solutions. For assistance call or W.h.a.t.s.a.p.p us on ...(.+.2.5.4.7.7.9.5.4.0.1.3.2)...........

Content preview

COS3721
ASSIGNMENT 2 2026

UNIQUE NO.
DUE DATE: 1 JULY 2026

,OPERATING SYSTEMS

Question 01 [15 marks]

a. Scheduling approaches

Per-core run queues:

 Each CPU core maintains its own queue of ready processes.
 CPU-intensive tasks tend to stay on the same core, improving cache locality.
 Interactive tasks may suffer if stuck behind longer tasks in the same queue.

Shared run queue:

 All processes are placed in a single global queue.
 Any idle core can pick the next available task.
 Improves responsiveness for short interactive tasks due to flexible scheduling.



b. Advantages and disadvantages

Per-core run queues

Advantages:

 Better CPU cache locality (tasks stay on same core)
 Reduced queue contention

Disadvantages:

 Load imbalance between cores
 Requires complex load balancing

Shared run queue

, Advantages:

 Good load balancing across cores
 Better responsiveness for interactive tasks

Disadvantages:

 High contention on shared queue
 Poor cache locality due to task migration



c. Load imbalance scenario

The shared run queue is better for balancing workload because:

 All cores draw from a single pool of tasks.
 Idle cores can immediately fetch tasks.
 Prevents some cores from being overloaded while others are idle.



d. Recommendation

Recommended: Per-core run queues with load balancing

 High performance due to reduced contention
 Better cache efficiency (CPU-bound tasks remain on same core)
 Fairness ensured through periodic task migration
 Suitable for mixed workloads (interactive + CPU-intensive)




Question 02 [15 marks]

Connected book
 image
Publisher: 2020 ISBN: 9783346125033 Edition: Unknown

Document information

Uploaded on
July 1, 2026
Number of pages
25
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$3.81

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LIBRARYpro
3.8
(1504)
Sold
10760
Followers
4904
Items
5049
Last sold
2 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions