0
0
Operating Systemsknowledge~10 mins

Process Control Block (PCB) in Operating Systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the main purpose of a Process Control Block (PCB).

Operating Systems
The Process Control Block (PCB) is used to [1] information about a process in an operating system.
Drag options to blanks, or click blank then click option'
Adelete
Bstore
Cignore
Dhide
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'delete' because it sounds like removing a process, but PCB actually keeps info.
Choosing 'ignore' or 'hide' because they don't relate to managing process data.
2fill in blank
medium

Complete the code to specify which of these is NOT typically stored in a PCB.

Operating Systems
A PCB usually contains process state, program counter, CPU registers, and [1].
Drag options to blanks, or click blank then click option'
Amemory address
Bscheduling information
Cuser password
DI/O status
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing scheduling information as unrelated, but it is part of PCB.
Thinking memory address is not stored, but it is needed for process management.
3fill in blank
hard

Fix the error in the statement about PCB content.

Operating Systems
The PCB contains the process state, program counter, CPU registers, and [1] which is incorrect.
Drag options to blanks, or click blank then click option'
Auser interface settings
Bmemory limits
CI/O status information
Dprocess ID
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing memory limits or process ID as incorrect, but they are part of PCB.
Confusing I/O status as unrelated, but it is stored in PCB.
4fill in blank
hard

Fill both blanks to complete the description of PCB components.

Operating Systems
The PCB includes [1] to track the process execution point and [2] to manage resource allocation.
Drag options to blanks, or click blank then click option'
Aprogram counter
Buser credentials
Cmemory management information
Dnetwork settings
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing user credentials or network settings which are unrelated to PCB.
Mixing up program counter with CPU registers.
5fill in blank
hard

Fill all three blanks to complete the dictionary comprehension representing PCB fields.

Operating Systems
pcb = { [1]: [2] for [3] in process_fields if [2] != None }
Drag options to blanks, or click blank then click option'
A{
Bprocess_fields[field]
Cfield
D}
Attempts:
3 left
💡 Hint
Common Mistakes
Using '}' at the start instead of '{'.
Using incorrect variable names or missing the loop variable.