Font size
WorksheetsOS - Assessment 05
Total questions: 20
Worksheet time: 15mins
This is a programming paradigm that allows multiple processes or threads to execute simultaneously, improving performance and efficiency. ----- PROGRAMMING
(a)
Which of the ff are challenges that concurrent programming introduces?
synchronization
communication between concurrent processes
delay
unsynch
This means an instance of a program.
(a)
This means a lightweight process
(a)
Apart from processes, which is another basic unit of execution?
(a)
How does processes communicate?
Thru inter-process communication mechanisms
Thru synchronization mechanisms
How does threads communicate?
Thru inter-process communication mechanisms
Thru synchronization mechanisms
These might happen because of a deadlock.
A program might crash
A program might freeze
A program might run smoothly
A cause of deadlock which means one or more resources are acquired in an exclusive mode.
Mutual Exclusion
Hold and Wait
No Pre-emption
Circular Wait
A cause of deadlock which means at least one resource in exclusive mode and wait for at least another resource that has been acquired by another resource in exclusive mode.
Mutual Exclusion
Hold and Wait
No Pre-emption
Circular Wait
A cause of deadlock which means that processes do not release the resources allotted to them voluntarily w/o utilizing the resources
Mutual Exclusion
Hold and Wait
No Pre-emption
Circular Wait
A cause of deadlock which means that a closed chain or circular relationship exists among the processes involved in a deadlock.
Mutual Exclusion
Hold and Wait
No Pre-emption
Circular Wait
Which of the ff are concurrency mechanisms?
Mutual Exclusion
Hold and Wait
No Pre-emption
Circular Wait
IPC stands for Inter-Process ----------.
(a)
Which of the ff are Inter-Process Communication Problems?
Starvation
Deadlock
Data Inconsistency
Shared Buffer Problem
Which Inter-Process Communication Problems has sections that might cause problems called critical sections?
Starvation
Deadlock
Data Inconsistency
Shared Buffer Problem
Which Inter-Process Communication Problems can cause race conditions?
Starvation
Deadlock
Data Inconsistency
Shared Buffer Problem
Which Inter-Process Communication Problems uses the sample of Rich Dad and Poor Student, where they share a bank account?
Starvation
Deadlock
Data Inconsistency
Shared Buffer Problem
Which Inter-Process Communication Problems uses the sample of two pirates that neither is willing to give up the half of the treasure map they have?
Starvation
Deadlock
Data Inconsistency
Shared Buffer Problem
Which of the ff are the basic units of execution?
Process
Threads
all of the above
Locks
