Question

A process is running on two kernel threads. Match each combinations of TCB/PCB states with proper choice of valid/invalid, as

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Table:

PCB TCB 1 TCB 2 VALID/INVALID Running Running Ready VALID Ready Ready Running VALID Blocked Ready Ready INVALID Blocked Block

Reason:

3rd Combination:

When a process i.e. PCB is blocked, no other process has access to the threads i.e. TCBs running under it. Hence if PCB is in blocked state then all the TCBs under it must also be blocked. So 3rd Combination is invalid

6th Combination:

If a thread i.e. TCB is blocked, then it blocks the parent process i.e. PCB which subsequently blocks rest of the remaining concurrent threads. Hence if TCB is in blocked state then PCB and all the concurrent threads must also be in blocked state.

Add a comment
Know the answer?
Add Answer to:
A process is running on two kernel threads. Match each combinations of TCB/PCB states with proper...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A process is running on two kernel threads. Match each combinations of TCB/PCB states with proper...

    A process is running on two kernel threads. Match each combinations of TCB/PCB states with proper choice of valid/invalid, assuming a single CPU system. Question 4 (2 points) A process is running on two kernel threads. Match each combinations of TCB/PCB states with proper choice of valid/invalid, assuming a single CPU system. < PCB Ready TCB1 Running TCB2 Ready < PCB Blocked TCB1 Ready TCB2 Ready PCB Running TCB1 Running TCB2 Blocked 1. is valid 2. is invalid < PCB...

  • 2. Consider an operating system that has the fllowing process states, new, ready, waiting (or blocking), running, and terminated. Answer the following questions (a) Draw a process state transitio...

    2. Consider an operating system that has the fllowing process states, new, ready, waiting (or blocking), running, and terminated. Answer the following questions (a) Draw a process state transition diagram (b) Explain what may cause a process to enter the waiting state from the running state. (c) Do we need a queue for the processes in the running state? Justify your answer (d) Describe the actions taken by a kernel to context-switch between processes 2. Consider an operating system that...

  • (30 points) Assume you have three processes with the following attributes running on a single CPU...

    (30 points) Assume you have three processes with the following attributes running on a single CPU (uniprocessor system): Process 1/0 Burst Total CPU Time Arrival Time CPU Burst | 05 22 12 B 7 10 C D Create three scheduling simulations for these processes using the following algorithms: a. First Come First Served (FCFS) b. Round Robin, Time Slice = 2 c. Shortest Job (CPU Burst Time) First with NO Preemption Use the simulation format we covered in class to...

  • Q.6. Consider a preemptive operating system where processes have priorities and a running process gets preempted...

    Q.6. Consider a preemptive operating system where processes have priorities and a running process gets preempted (i.e., forced to leave the CPU) as soon as a higher priority process is ready to run. The life cycle of a process, other than the very first process, begins with a "spawn" by another process and ends with either a regular "exit" by the process or a "terminate (process_id)" command by another process of equal or higher priority. COMP 346 – Fall 2019...

  • 1. Threads created by a single program share the same memory address space. T/F 2. Threads...

    1. Threads created by a single program share the same memory address space. T/F 2. Threads created by a single program share the same memory stack. T/F 3. Threads created by a single program share the same scheduling state (e.g., Ready, Waiting). T/F 4. Threads created by a single program share the same open files. T/F 5. A thread enters the Running state when the thread scheduler resumes it. T/F 6. The thread_exit() call can immediately garbage collect the exited...

  • Consider the following two threads of a process, to be run concurrently in a shared memory...

    Consider the following two threads of a process, to be run concurrently in a shared memory (all variables are shared between the two threads): Assume the following: 1. a single-core system 2. load and store are atomic (i.e. they start and finish without interruption) 3. x is initialized to 0 before either thread starts, and 4. x must be loaded into a register before being incremented (and stored back to memory afterwards). The following questions consider the final value of...

  • 1. What are the different states of a process. Explain each state in detail. 2. What...

    1. What are the different states of a process. Explain each state in detail. 2. What is the Process Control Block? Explain what it contains about each process. 3. Explain the procedure of switching CPU control from process to process. 4. Explain in details job, device and ready queues. 5. Write and Explain a queuing diagram . 6. Explain the two methods to create new processes. 7. Explain different types of termination of processes and Zombie and orphan processes. 8....

  • EMULATE A PROCESS CONTROL BLOCK In this assignment you will use Java, Python or C++ to...

    EMULATE A PROCESS CONTROL BLOCK In this assignment you will use Java, Python or C++ to create a process control block. All objects described aren’t provided, you will create them. You can divide up this code into separate files or put all code in one file. Proper documentation is essential, if there are no comments 5% of the total grade will be deducted. The process control block object PCB should have the following fields: ID: a unique ID for this...

  • A system consists of 1 CPU, 1 Disk, and 1 Network Interface. A web server running...

    A system consists of 1 CPU, 1 Disk, and 1 Network Interface. A web server running on this system consists of a process that waits for an HTTP request. Once the request is received, the process services it by fetching the requested file from disk (an I/O operation) and then by sending the file content to the client. Assume that serving a request consists of the following phases: i. Process uses the CPU for 2 msec (parse request) // CPU...

  • Question 4 [Points 4] Consider a system running 2 (two)CPU-bound tasks (C1-C2) and 1(one) I/O-bound tasks(I1). I/O bound...

    Question 4 [Points 4] Consider a system running 2 (two)CPU-bound tasks (C1-C2) and 1(one) I/O-bound tasks(I1). I/O bound task issues an I/O operation once every 1millisecond ofCPU. Each I/O operation takes 10milliseconds. Assume that there is only one I/O device (so multiple I/O requests may have to queue). Assume that the context switch takes 1 millisecond. Assume that each CPU-bound requires 20 milliseconds of CPU to complete and each I/O-bound task requires 2millisecondof CPU time. Show through a Ganttt chart...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT