Welcome to Assignments Writing

Your Trusted Partner in Term Paper Writing

At Assignments Writing, we’re a team of passionate educators and skilled writers committed to supporting students in their academic journey.

Problem Solving in Process Management Questions

Problem Solving in Process Management Questions

ANSWER

Let’s go through each of the questions one by one:

Q 3.2:

  • At time 22, P3 is in the Running state because it executed a read command from disk unit 2.
  • At time 37, P5 is in the Blocked state, and it’s blocked on the completion of its write operation to disk unit 3.
  • At time 47, P5 is in the Running state because it was swapped back in.

Q 3.4: Unfortunately, I cannot draw diagrams, but I can describe how to create a queuing diagram for the seven-state process model in Figure 3.9b. You’ll have seven states: Running, Ready, Blocked, New, Exit, Zombie, and Suspended.

Q 4.4: In a model where there is a one-to-one mapping between user-level threads and kernel-level threads, if one thread within a process issues a blocking system call, other threads within the same process can continue to run. This can make multithreaded programs run faster than their single-threaded counterparts on a uniprocessor computer because other threads can continue to perform useful work while one thread is blocked. In a single-threaded program, a blocking system call would halt the entire program until the call completes, whereas in a multithreaded program, other threads can make progress.

Q 4.5: When a process exits and there are still threads of that process running, the behavior depends on the operating system and how threads are managed. In some systems, the remaining threads may be terminated automatically when the process exits, while in others, they may continue to run. It ultimately depends on the thread management policy of the specific operating system.

Q 6.5: a. To verify the Available array, you can use the formula: Available = (Available) – (Current Allocation). In this case, it would be: (6, 3, 5, 4) – (8, 2, 3, 4) = (-2, 1, 2, 0). The negative values in the Available array indicate that there are not enough resources available to satisfy any process.

b. To calculate the Need matrix, you subtract the Current Allocation from the Maximum Demand for each process.

c. To show that the current state is safe, you can use the Banker’s algorithm to find a safe sequence of processes. Unfortunately, it’s too complex to demonstrate here, but you can follow the steps of the Banker’s algorithm to find a safe sequence.

d. To determine if the request (3, 2, 3, 3) from Process P5 should be granted, you can use the Banker’s algorithm to check if it’s safe to allocate these resources. Again, this involves several steps, and the request can be granted if it doesn’t lead to an unsafe state.

Q 6.11: a. To determine if the fourth process with a maximum memory need of 60 and an initial need of 25 units can be granted, you can use the Banker’s algorithm. Unfortunately, it’s too complex to demonstrate here, but you can follow the steps of the Banker’s algorithm to check for safety.

b. To determine if the fourth process with a maximum memory need of 60 and an initial need of 35 units can be granted, again, you would use the Banker’s algorithm to check for safety.

Q 6.15: To find the minimum number of units of the resource needed to be available for this state to be safe, you can use the Banker’s algorithm. The Banker’s algorithm checks for safety by simulating resource allocation. If a sequence of resource requests and releases can be found that avoids deadlock, the state is considered safe. The minimum number of units needed to be available is the maximum initial claim of any process minus the sum of the resources already allocated, which in this case is 3 (max claim) – 1 – 1 – 3 – 2 = -4. However, you can’t have a negative number of units available, so the minimum number needed for safety would be 0 units.

Problem Solving in Process Management Questions

QUESTION

Description

 

 

Q 3.2: Assume at time 5, no system resources are being usedexcept for the processor and memory. Now consider the following events:

At time 5: P1 executes a command to read from disk unit 3.

At time 15: P5’s time slice expires.

At time 18: P7 executes a command to write to disk unit 3.

At time 20: P3 executes a command to read from disk unit 2.

At time 24: P5 executes a command to write to disk unit 3.

At time 28: P5 is swapped out.

At time 33: An interrupt occurs from disk unit 2: P3’s read is

complete.

At time 36: An interrupt occurs from disk unit 3: P1’s read is

complete.

At time 38: P8 terminates.

At time 40: An interrupt occurs from disk unit 3: P5’s write is

complete.

At time 44: P5 is swapped back in.

At time 48: An interrupt occurs from disk unit 3: P7’s write is

complete.

For each time 22, 37, and 47, identify which state each process is

in. If a process is blocked, further identify the event on which it is

blocked.

Q 3.4: For the seven-state process model of Figure 3.9b , draw aqueuing diagram similar to that of Figure 3.8b .

Q.4.4. Consider an environment in which there is a one-to-one

mapping between user-level threads and kernel-level threads that

allows one or more threads within a process to issue blocking

system calls while other threads continue to run. Explain why this

model can make multithreaded programs run faster than their

single-threaded counterparts on a uniprocessor computer.

Q4.5. If a process exits and there are still threads of that process running, will they continue to run?

Q6.5) Given the following state for the Banker’s Algorithm. 6 processes P0 through P5 4 resource types: A (15 instances); B (6 instances) C (9 instances); D (10 instances) Snapshot at time T0:

Available

A

B

C

D

6

3

5

4

Current allocation

Maximum demand

Process

A

B

C

D

A

B

C

D

P0

2

0

2

1

9

5

5

5

P1

0

1

1

1

2

2

3

3

P2

4

1

0

2

7

5

4

4

P3

1

0

0

1

3

3

3

2

P4

1

1

0

0

5

2

2

1

P5

1

0

1

1

4

4

4

4

a. Verify that the Available array has been calculated correctly.

b. Calculate the Need matrix.

c. Show that the current state is safe, that is, show a safe sequence of processes. In addition, to the sequence show how the Available (working array) changes as each process terminates.

d. Given the request (3,2,3,3) from Process P5. Should this request be granted? Why or why not?

Q 6.11 )6Consider a system with a total of 150 units of memory, allocated to three processes as shown:

Process

Max

Hold

1

70

45

2

60

40

3

60

15

Apply the banker’s algorithm to determine whether it would be safe to grant each of the following requests. If yes, indicate a sequence of terminations that could be guaranteed possible. If no, show the reduction of the resulting allocation table.

a. A fourth process arrives, with a maximum memory need of 60 and an initial need of 25 units. b. A fourth process arrives, with a maximum memory need of 60 and an initial need of 35 units.

Q 6.15. Consider a system consisting of four processes and a single resource. The current state of the claim and allocation matrices are: C =3 2 9 7  -A =1 1 3 2

What is the minimum number of units of the resource needed to be available for this state to be safe?

Place Your Order Here

Our Service Charter


1. Professional & Expert Writers: We only hire the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of master’s and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. We are known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: We have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Format & Features

Our Advantages

How It Works

1. Fill Order Form
2. Make payment
3. Writing process
4. Download paper

Fill in the order form and submit all your files, including instructions, rubrics, and other information given to you by your instructor.

Once you complete filling the forms, complete your payment. We will get the order and assign it to a writer.

When your order is completed, it’s assigned to an editor for approval. The editor approves the order.

Once approved, we will upload the order to your account for you to download.  You can rate your writer or give your customer review.

What Clients Said

{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Mercy M
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Jane L
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

4.5
Rayan M

LET US DELIVER YOUR ACADEMIC PAPER ON TIME!

We are a freelance academic writing company geared towards provision of high quality academic papers to students worldwide.

Open chat
1
Scan the code
Hello
Can we help you?