NEW
Font size
WorksheetsBCS303_Internal_Assessment
Total questions: 15
Worksheet time: 8mins
In a multithreaded process, which of the following is NOT shared among threads?
Heap
Global variables
C. Stack
D. Code section
Which condition definitely forces a CPU scheduling decision?
Process switches from ready to running
Process switches from waiting to ready
Process switches from new to ready
Process switches from running to waiting
Starvation can occur in
FCFS only
Round Robin only
Priority Scheduling only
Priority Scheduling and SJF
In bounded buffer problem, why only (BUFFER_SIZE − 1) slots are usable?
To avoid overflow
To distinguish full and empty buffer
To reduce memory usage
Due to modulo operation
If a parent terminates before the child and OS does NOT allow independent children, the child becomes
Zombie
Orphan
Cascading terminated
Deadlock
Many-to-one threading model fails on multicore systems because
Too many kernel threads
Blocking system call blocks all threads
Kernel unaware of threads
No parallel execution possible
Which of the following statements about a process is TRUE?
A process is only a program stored on disk and does not include execution details.
A process includes program code, current execution state, stack, heap, and data section.
A process and a thread are exactly the same and always have separate memory.
A process does not require a program counter to execute instructions.
Which of the following statements about process states is FALSE?
A process in the ready state is waiting to be assigned the CPU.
A process in the running state is currently executing instructions on the CPU.
A process in the waiting state is waiting for I/O or some event to occur.
A process in the terminated state is waiting in the ready queue for CPU allocation.
Which of the following statements regarding the Process Control Block (PCB) is TRUE?
PCB stores only the process ID and nothing else.
PCB contains information required to restart a process after a context switch.
PCB is created only after a process terminates.
PCB is shared among all processes in the system.
Which of the following statements about Inter-Process Communication (IPC) is TRUE?
IPC is required only for independent processes.
Message passing allows processes to communicate without sharing memory.
Shared memory IPC does not require synchronization between processes.
IPC is unnecessary in multitasking operating systems.
In a multithreaded environment, which of the following is a potential issue when threads share data?
Race condition
All of the above
Deadlock
Starvation
What happens to a process that is in the waiting state?
It is waiting for an I/O operation to complete.
It has finished execution.
It is ready to be assigned to the CPU.
It is currently executing instructions.
Which of the following is a method of synchronization in concurrent programming?
All of the above
Monitor
Semaphore
Mutex
What is the primary purpose of a process scheduler in an operating system?
To manage memory allocation
To handle I/O operations
To maintain process states
To determine the order of process execution
Which of the following is a characteristic of a thread?
Threads share the same memory space
Threads cannot run concurrently
Threads are heavier than processes
Threads have separate process IDs
