<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[McQ Solved for Mid Tearm and Final Term]]></title><description><![CDATA[<p dir="auto">If a system is not in a safe state, there can be No deadlocks.<br />
►True<br />
►False(Page 137)<br />
A dashed line is used to represent a _________ in Resource Allocation Graph.<br />
►Claim edge (Page 138)<br />
►Request edge<br />
►Assignment edge<br />
►Allocation edge<br />
The process of holding at least one resource and waiting to acquire additional resources that are currently<br />
being held by other processes is known as________.<br />
►Mutual exclusion<br />
►Hold and wait (Page 131)<br />
►No preemption<br />
►Circular wait<br />
In Resource Allocation Graph, A _______ Pi →Rj indicates that process Pi may request resource Rj at some<br />
time in the future.<br />
►Claim edge (Page 138)<br />
►Request edge<br />
►Assignment edge<br />
►Allocation edge<br />
If the system can allocate resources to each process in some order and still avoid a deadlock then it said to<br />
be in ______ state.<br />
►Safe (Page 137)<br />
►Unsafe<br />
►Mutual<br />
►Starvation<br />
A condition where a set of blocked processes each holding a resource and waiting to acquire a resource<br />
held by another process in the set is termed as ________.<br />
►Deadlock (Page 130)<br />
►Starvation<br />
The following is NOT a classical problem of synchronization<br />
►Bounded buffer problem<br />
►Reader writer problem<br />
►Dining philosopher‟s problem<br />
►Counting semaphore problem (Page 118)<br />
(MCQZ-CS604 Operating Systems)<br />
(No repeated Questions) April 2014<br />
(MCS Students: MC120202589/MC120201756)<br />
Virtual University Of Pakistan<br />
<a href="mailto:arshad_khokher@yahoo.com" target="_blank" rel="noopener noreferrer nofollow ugc">arshad_khokher@yahoo.com</a>, <a href="mailto:itsvividmirror@gmail.com" target="_blank" rel="noopener noreferrer nofollow ugc">itsvividmirror@gmail.com</a><br />
The integer value of ________semaphores can range over an unrestricted integer domain.<br />
►Counting (Page 117)<br />
►Binary<br />
►Mutex<br />
►Bounded buffer<br />
The condition in which a set {P0, P1… Pn} of waiting processes must exist such that P0 is waiting for a<br />
resource that is held by P1, P1 is waiting for a resource that is held by P2, and so on, Pn-1 is waiting for a<br />
resource held by Pn, and Pn is waiting for a resource held by P0. This condition is known as<br />
______________.<br />
►Mutual exclusion<br />
►Hold and wait<br />
►No preemption<br />
►Circular wait (Page 131)<br />
You can use the rm file1 command to __________ file1<br />
►Retrieve<br />
►Remove (Page 30)<br />
►Make<br />
►modify<br />
The correct command for compiling C program named program.c in Linux environment is<br />
►gcc program.c -o FirstPrgram (Page 31)<br />
►gcc -o FirstProgram program.c<br />
►gcc -z FirstProgram program.c<br />
►gcc program.c -m FirstPrgram<br />
Using _________system, we can create a new process in Linux.<br />
►Fork (Page 39)<br />
► exec<br />
►wait<br />
►exit<br />
Cooperating processes never share any data, code, memory or state.<br />
►True<br />
►False(Page 5)<br />
Question No: 5 of 10 ( Marks: 1 ) - Please choose one<br />
____ command display the status of a process.<br />
►ls<br />
►ps (Page 66)<br />
►gcc<br />
►cat</p>
<p dir="auto">Swapper is also termed as Short term scheduler.<br />
►True<br />
►False(Page 36)<br />
_____ system call is used to write to a file or FIFO or any other IPC channel.<br />
►read<br />
►write(Page 48)<br />
►open<br />
►fork<br />
A Process „A‟ that has finished working but its parent process has also finished its execution. In this<br />
state the process „A‟ will be called as _____ process.<br />
►Child<br />
►Thread<br />
►Zombie (Page 42)<br />
►Fork<br />
_________________ scheduling allows a process to move between queues.<br />
►Round Robin<br />
►First Come First Serve<br />
►Multilevel Feedback Queue (Page 92)<br />
►Shortest Remaining Time First<br />
Kernel is responsible for scheduling the user level threads.<br />
►True<br />
►False (Page 73)<br />
A ---------------- (or an exception) is a software-generated interrupt caused either by an error (division by<br />
zero or invalid memory access) or by a user request for an operating system service.<br />
► Interrupt<br />
► Trap (Page 10)<br />
► Signal<br />
► Process<br />
Which register holds the smallest legal physical memory address for a process?<br />
► Base register (Page 13)<br />
► Limit register<br />
► Status register<br />
► None of the given options<br />
The --------------semaphore provides mutual exclusion for accesses to the buffer pool and is initialized to<br />
the value 1.<br />
► mutex (Page 118)<br />
► binary<br />
► couting<br />
► none of the given options<br />
Binary semaphores are those that have only two values---------<br />
► 0 and n<br />
► 0 and 0<br />
► 0 and 1 (Page 117)<br />
► None of the given options<br />
Physical memory is broken down into fixed-sized blocks, called----------- and Logical memory is divided<br />
into blocks of the same size, called -----------<br />
► Frames, pages (Page 165)<br />
► Pages, Frames<br />
► Frames, holes<br />
► Holes, segments<br />
A page table needed for keeping track of pages of the page table is called --------------<br />
► 2-level paging<br />
► Page directory (Page 173)<br />
► Page size<br />
► Page table size<br />
The address generated by the CPU, after any indexing or other addressing-mode arithmetic, is called a —<br />
-----address, and the address it gets translated to by the MMU is called a ---------address.<br />
►Virtual, physical click here for detail<br />
► Hexadecimal, Binary,<br />
► Valid, invalid<br />
► Physical, Virtual<br />
Each page is a power of -------- bytes long in paging scheme.<br />
► 2<br />
► 3<br />
► 4 (Page 167)<br />
► 5<br />
Which part of the computer system helps in managing the file and memory management system?<br />
► Operating System (Page 5)<br />
► Device Drivers<br />
► Application Software<br />
► Hardware<br />
Which of the following is correct definition for wait operation?<br />
► wait(S) { (Page 111)</p>
<p dir="auto">while(S&lt;=0)<br />
;// no o<br />
S–;<br />
}<br />
► wait(S) {<br />
S++;<br />
}<br />
► wait(S) {<br />
while(S&gt;=0)<br />
;// no op<br />
S–;<br />
}<br />
► wait(S) {<br />
S–;<br />
}<br />
In deadlock detection and recovery algorithm, a deadlock exists in the system if and only if the wait for<br />
graph contains a _____________<br />
► Cycle (Page 147)<br />
► Graph<br />
► Edge<br />
► Node<br />
------------ register contains the size of the process<br />
►Base register<br />
►Index register<br />
►Limit register (Page 13)<br />
►Stack pointers register<br />
The -----------scheme is not applicable to a resource allocation system with multiple instances of each<br />
resource type.<br />
►Wait for graph (Page 148)<br />
►Resource allocation graph<br />
►Both Resource-allocation and wait-for graph ► None of the given options<br />
___________ algorithm is used in Deadlock avoidance.<br />
►Bakery<br />
►Banker‟s (Page 139)<br />
►Mutual exclusion<br />
►Safe Sequence<br />
What do we name to an address that is loaded into the memory-address register of the memory?<br />
►Logical address<br />
►Physical address (Page 155)<br />
►Binary addresses<br />
►None of the given options</p>
<p dir="auto">Cache is non-volatile memory.<br />
►True<br />
►False (Page 153)<br />
A system call________<br />
►Is an entry point into the kernel code (Page 18)<br />
►Allows a program to request a kernel service<br />
►Is a technique to protect I/O devices and other system resources<br />
►All of the these<br />
The condition where a set of blocked processes each holding a resource and waiting to acquire a resource<br />
held by another process in the set, is termed as ________.<br />
►Deadlock (Page 130)<br />
►Starvation<br />
Banker‟s algorithm is used for ________________<br />
►Deadlock avoidance (Page 140)<br />
►Deadlock detection<br />
►Deadlock prevention<br />
►Deadlock removal<br />
The ________ requires that once a writer is ready, that writer performs its write as soon as possible , if a<br />
writer waiting to access the object, no new readers may start reading.<br />
first readers-writers problem<br />
►second readers-writers problem (Page 119)<br />
►third readers-writers problem<br />
►fourth readers-writers problem<br />
________________ is an integer variable accessible through wait and signal which are atomic operations.<br />
►Semaphore (Page 111)<br />
►Mutex<br />
►Busy w aiting<br />
►Signal<br />
The integer value of _________ semaphores can not be greater than 1.<br />
►Counting<br />
►Binary (Page 117)<br />
►Mutex<br />
►Bounded buffer<br />
Starvation is infinite blocking caused due to unavailability of resources.<br />
►True (Page 115)<br />
►False</p>
<p dir="auto">Operating System provides services such as Managing Primary and Secondary Storage, Processes and<br />
Allowing user to manage his/her files and directories.<br />
►True (Page 5)<br />
►False<br />
___________ is used in real time operating systems.<br />
►Non-preemptive scheduling Click here for detail<br />
►Preemptive scheduling<br />
►Dispatching scheduling<br />
►FCFS scheduling<br />
Preventing a condition of ________ to happen, deadlocks can be prevented to happen.<br />
►Critical region<br />
►Circular wait (Page 136)<br />
►Monitors<br />
►Critical section<br />
The problem with priority scheduling algorithm is ________.<br />
 Deadlock<br />
 Starvation (Page# 84)<br />
 Aging<br />
 Nice value<br />
Kernel threads are supported directly by the operating system. The kernel performs<br />
the scheduling, creation, and management in ------ command display the status of a<br />
process.<br />
 ls<br />
 ps (Page# 63)<br />
 gcc<br />
 cat<br />
_______________ scheduling algorithm can be preemptive or non-preemptive.<br />
 First Come First Serve<br />
 Shortest Job First (Page # 83)<br />
 Round Robin<br />
 Priority<br />
Round Robin algorithm is most suitable for __________.<br />
 Time sharing system (Page # 86)<br />
 Real time systems and batch systems<br />
 Running Batch programs</p>
<p dir="auto"> Expert system<br />
The critical section problem can‟t be solved by the following except<br />
 Software based solution<br />
 Firmware based solution (Page# 99)<br />
 Operating system based solution<br />
 Hardware based solution<br />
Mkfifo () is a _______.<br />
 System Call<br />
 Command<br />
 Directory<br />
 None of Above (Page# 57)<br />
Preemptive ----------------scheduling is sometimes called shortest remaining-time-first scheduling.<br />
 First-Come-First-Served (FCFS)<br />
 Round-Robin<br />
 Sorted Job First (SJF) (Page# 83)<br />
 Priority<br />
rm and rmkdir commands are used to _____________ directory.<br />
 Create<br />
 Move<br />
 Remove(Page# 27)<br />
 Modify<br />
Linux is only single user operating system<br />
 True<br />
 False (Page# 4)<br />
____________ command is used to change the directory.<br />
 Ls<br />
 Cp<br />
 Cd (Page# 23)<br />
 mv<br />
______________ is used to request the OS by the process to take an I/O or initiating child process.<br />
System call<br />
Interrupt<br />
Trap<br />
Signal</p>
<p dir="auto">A parent process calling __________ system call will be suspended until children process terminates.<br />
Select correct option:<br />
wait<br />
fork<br />
exit<br />
exec<br />
In producer-Consumer problem synchronization is required. On which shared area this<br />
synchronization actually affect?<br />
 Counter<br />
 Buffer (Page #45)<br />
 Entry section<br />
 Exit section<br />
Which could not be the advantage of thread?<br />
 Separate address space<br />
 Quick response<br />
 Economical<br />
 Best in multiprocessing environment<br />
Using hardware solution to synchronization for complex problems, introduce a new<br />
synchronization tool know as _______________.<br />
 TestAndSet<br />
 Semaphore (Page No. 111 )<br />
 Swap<br />
 Trap<br />
In instruction TestAndSet mutual exclusion implementation is done by declaring a Boolean<br />
variable lock ______________.<br />
 Initialized as zero<br />
 Initialized as true<br />
 Initialized as 1<br />
 Initialized as false (Page No. 109)<br />
Use of semaphore create a problem of busy waiting, this wastes CPU cycles that some other<br />
process may be able to use productively. This type of semaphore is also called ______________<br />
 Semaphore S<br />
 Spinlock (Page No. 112 )<br />
 Locking Semaphore<br />
 Mutex</p>
<p dir="auto">------------- is a segment of code that accesses a shared resource like data structure or device<br />
that must not be concurrently accessed by more than one thread of execution.<br />
 Multithreading<br />
 Context switching<br />
 Critical section (Page No. 105, click here for details )<br />
 Pipelining<br />
Critical section is a place where certain shared structure is updated. Its solution required<br />
certain precaution; one of them is the access to critical section by one process at a time only.<br />
What this condition is termed as?<br />
 Progress<br />
 Entry section<br />
 Bounded waiting<br />
 Mutual exclusion<br />
A solution to the critical section problem must satisfy the following requirements except<br />
 Progress<br />
 Mutual Exclusion<br />
 Bounded Waiting<br />
 Race Condition<br />
Keep in mind scheduling algorithm, when you go to any famous fast food franchise .On<br />
entering the store, each customer receives a number. The customer with the lowest number is<br />
served next. This algorithm is called-------------.<br />
 Dijkastra algorithm<br />
 Simple algorithm<br />
 Deadlock algorithm<br />
 Bakery algorithm<br />
While executing the statement c++/c-- in Producer-Consumer problem, at back end certain<br />
number of instructions are executed, if interleaving of statements happen, it create race<br />
condition. Tell number of instructions that require “no interleaving” while executing c++/c–?<br />
 3<br />
 1<br />
 2<br />
 0<br />
User mode can run the Privileged instructions.<br />
Select correct option:<br />
True<br />
False</p>
<p dir="auto">In Unix/Linux environment, Ayesha wants to know the complete picture of current processes<br />
in her session. Which of the following command will help her in this regard?<br />
Select correct option:<br />
$ ps<br />
$ gcc<br />
$ top<br />
$ fifo<br />
When processes are generated using fork () system call and then after that they are<br />
coordinated with each other using IPC channel. They are utilizing a separate address space for<br />
each of process (parent, child), kernel resources and IPC channel. This makes it a more heavy.<br />
Which strategy can be used to make it light?<br />
Select correct option:<br />
Termination of child process when these become more<br />
Scheduling of each process<br />
Use of threads<br />
Use of Batch systems<br />
In process management, some of the jobs can be suspended for some time in order to give other<br />
jobs a chance to be in execution. Which command can be used to place back a suspended<br />
program?<br />
Select correct option:<br />
Fg<br />
Top<br />
Ps<br />
Bg<br />
When sender never block because it has an infinite length storage area, then it means it is<br />
holding a queue of _____________ capacity.<br />
Select correct option:<br />
Zero<br />
Unbounded<br />
Defined<br />
Bounded<br />
In system call that creates a pipe for IPC. If one of the operation from read/write would fail<br />
then what will be returned as result?<br />
Select correct option:<br />
-1,+1<br />
-1 (page 57)<br />
1<br />
0<br />
To terminate a process  is pressed, which signal it actually pass to process for<br />
termination?<br />
Select correct option:<br />
SIGTERM<br />
SIGINT<br />
SIGKILL<br />
SIGTRAP<br />
A Process „A‟ that has finished working but its parent process has also finished its execution.<br />
In this state the process „A‟ will be called as _____ process.<br />
Select correct option:<br />
Child<br />
Thread<br />
Zombie<br />
Fork<br />
While using the read/write system call which data type is use to return the size of file to buffer<br />
from file descriptor fd?<br />
Select correct option:<br />
Pipefd<br />
SIZE_MAX<br />
FIFO<br />
Ssize_t (page45)<br />
In Unix/Linux ------------- are used for client server communication to pass data between a<br />
server process and client processes.<br />
Select correct option:<br />
FIFO (page 60)<br />
LIFO<br />
Read()<br />
Write()<br />
Consider a scenario of CPU protection, ----------- is added to the operating system in order to<br />
detect and avoid loop in a user program.<br />
Select correct option:<br />
I/O<br />
Timer<br />
Base and limit registers<br />
Turning interrupt enable off<br />
Thread that is not executed for servicing a request by a user thread .It is named as -------------.<br />
EINVAL<br />
EAGAIN<br />
LWP<br />
POSIX<br />
Consider three processes in scheduling. Here are the waiting times for three processes<br />
P1=4,P2=2,P3=6.Which one of is correct average waiting time per process?<br />
4 (page 81)<br />
6<br />
2<br />
3<br />
In Unix/Linux environment Ali want to know the number of processes running on the system and their<br />
status, number of CPUs in the system and their usage, amount of main memory and its usage. Which of<br />
the following command will help in this regard?<br />
 $ ps<br />
 $ gcc<br />
 $ fifo<br />
 $ top<br />
In multi-threaded process thread () take two argument, they are used to take______________<br />
and ___________.<br />
 Program counter value, address space limit<br />
 New thread ID, process name<br />
 Register count, program counter<br />
 New thread function name, new thread ID<br />
Pipes simply used on the command line to connect the standard input of one process to the<br />
standard input of another. Which of the following syntax is correct use of command line Linux<br />
/UNIX pipes?<br />
Select correct option:<br />
cmd1 % cmd2% ……… %cmdN<br />
cmd1 | cmd2 | … | cmdN (page 53)<br />
cmd1 $ cmd2 $ …………… $ cmdN<br />
cmd1 &amp; cmd2 &amp; ……………&amp;cmdN<br />
__________ commands in Linux helps to create a new directory.<br />
Select correct option:<br />
ls<br />
cp<br />
mv<br />
mkdir<br />
When processes communicate with each other, they perform communication through<br />
synchronization and utilizing separate address spaces. This action is termed as</p>
<hr />
<p dir="auto">Select correct option:<br />
Inter-process communication (page 67)<br />
Process management<br />
Synchronization<br />
Direct/indirect communication<br />
Ali is an operating system designer. One user requirement regarding OS is easy to debug and<br />
modify. In your opinion which one of the following OS structure Ali needs to follow?<br />
Select correct option:<br />
Simple OS Approach<br />
Micro kernels<br />
Layered Approach<br />
Virtual Machines<br />
Given bellow two statements can be categorized in some sort of message passing techniques.<br />
This type is named as ____________.<br />
• Send (A, message) • Receive (B, message)<br />
Synchronization<br />
Direct communication<br />
Explicit buffering<br />
Send by copy communication<br />
The TSL (TestAndSet instruction) which is the hardware solution to synchronization problem does<br />
not satisfy the ________ condition, hence not considered to be a good solution.<br />
Bounded waiting P/106<br />
None<br />
Mutual exclusion<br />
Progress<br />
The ------------system call is used to open or create a file.<br />
Open () Google<br />
Read ()<br />
Write ()</p>
<p dir="auto">Close ()<br />
------------- Threads are implemented by a thread library.<br />
Kernel thread<br />
User thread pg 70<br />
In client-server applications, __________ are used to pass data between a server process and client<br />
processes.<br />
FIFOs<br />
Used by __________ commands o pass data from one shell pipeline to another, without creating<br />
temporary files.<br />
Shell<br />
Fork system call is zero for the __________ process.<br />
Child<br />
__________ that define the ways in which system resources are used to solve the computing<br />
problems of the users.<br />
Applications programs<br />
__________ is used to create a thread.<br />
Thread ()<br />
Which multi-threading models provides true concurrency __________ .<br />
One-to-one<br />
User level provided support for __________ .<br />
User threads<br />
In critical section problem each process must first request permission to enter its critical section,<br />
the section of code implementing this request is called the __________ .</p>
<p dir="auto">Entry section<br />
2-Process and n-Process solutions to the Critical Section Problem are software solutions.<br />
Software<br />
Command Name interpreter is often known as the _______.<br />
a. Register<br />
b. Shell<br />
c. Kernel<br />
d. Timer<br />
All jobs that enter into a ________system are kept in the job pool.<br />
a. Single user.<br />
b. Batch<br />
c. Multiprogrammed<br />
d. Time sharing system<br />
Using _____ system call, we can create a new process in Unix.<br />
a. Fork<br />
b. Exec<br />
c. Wait<br />
d. Exit<br />
Pipe system call is used to _________ a pipe.<br />
a. Destroy<br />
b. Create<br />
c. Modify<br />
d. Clear<br />
To avoid race condition, the number of processes that may be simultaneously inside the critical<br />
section is ___________.<br />
a. 8<br />
b. 1<br />
c. 16<br />
d. 0<br />
A time interval when a process uses CPU only is called ______________.</p>
<p dir="auto">a. Scheduling<br />
b. I/O burst<br />
c. CPU burst<br />
d. Dispatch latency<br />
The solution type where in critical section we use “entry section and “exit section” is called kind of<br />
_______________.<br />
Select correct option:<br />
Hardware Solution<br />
Assumption<br />
Software Solution<br />
Consider three processes in scheduling .Here are the waiting times for the three processes P1 = 5;<br />
P2 = 10; P3 = 3. Which one of the following is correct average waiting time per process?<br />
Select correct option:<br />
3<br />
2<br />
18<br />
6<br />
Critical section problem can be solved by using how many ways?<br />
Select correct option:<br />
4<br />
3 (page 101)<br />
1<br />
2<br />
The section of code before the critical section is called __________<br />
Select correct option:<br />
Entry section<br />
Remainder section<br />
Exit section<br />
Crystal section<br />
The section of code after the critical section is called __________.<br />
Select correct option:<br />
Crystal section<br />
Entry section<br />
Remainder section<br />
Exit section<br />
_____________ algorithm is used for solving n-process critical section problem.<br />
Select correct option:<br />
Bankers<br />
Bakery (page 105)<br />
Babbles<br />
None of the given<br />
Consider a system of N processes (Po, P1 …… Pn-1). Each process in its critical section and the<br />
process may be changing common variables, updating a table, writing a file etc. No other process is<br />
allowed to execute in its critical section. This problem is called -------------<br />
Select correct option:<br />
Bakery algorithm<br />
N-Mutual exclusion<br />
N-Process Critical Section (page 105)<br />
Deadlock algorithm<br />
Consider three processes in scheduling .Here are the waiting times for the three processes P1 = 4;<br />
P2 = 2; P3 = 6. Which one of the following is correct average waiting time per process?<br />
Select correct option:<br />
4<br />
6<br />
2<br />
3<br />
Clock interrupt handler is an example of kernel thread that is not executed for servicing by user<br />
thread. It is named as<br />
EInval<br />
EAGAIN<br />
LWP (I think)<br />
PoSIX</p>
<p dir="auto">Thanks for Sharing<br />
(MCQs- Solved- CS604 Operating Systems)<br />
(No repeated Questions) April 2014<br />
(MCS Students: MC120202589/MC120201756)<br />
Virtual University Of Pakistan<br />
<a href="mailto:arshad_khokher@yahoo.com" target="_blank" rel="noopener noreferrer nofollow ugc">arshad_khokher@yahoo.com</a>, <a href="mailto:itsvividmirror@gmail.com" target="_blank" rel="noopener noreferrer nofollow ugc">itsvividmirror@gmail.com</a></p>
]]></description><link>https://community.secnto.com//topic/68/mcq-solved-for-mid-tearm-and-final-term</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:59:56 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/68.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 May 2019 13:30:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 25 Aug 2024 08:16:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moaaz" aria-label="Profile: moaaz">@<bdi>moaaz</bdi></a> said in <a href="/post/121">McQ Solved for Mid Tearm and Final Term</a>:</p>
<blockquote>
<p dir="auto">The condition in which a set {P0, P1… Pn} of waiting processes must exist such that P0 is waiting for a<br />
resource that is held by P1, P1 is waiting for a resource that is held by P2, and so on, Pn-1 is waiting for a<br />
resource held by Pn, and Pn is waiting for a resource held by P0. This condition is known as<br />
______________.<br />
►Mutual exclusion<br />
►Hold and wait<br />
►No preemption<br />
►Circular wait (Page 131)</p>
</blockquote>
<p dir="auto">The condition described is known as a <strong>“deadlock.”</strong></p>
<p dir="auto">In the context of computer science and operating systems, a deadlock occurs when a set of processes are each waiting for a resource that another process in the set holds, creating a cycle of dependencies. Specifically, in the scenario you described:</p>
<ul>
<li>Process ( p_0 ) is waiting for a resource held by ( p_1 ),</li>
<li>Process ( p_1 ) is waiting for a resource held by ( p_2 ),</li>
<li>and so on, until</li>
<li>Process ( p_n ) is waiting for a resource held by ( p_0 ).</li>
</ul>
<p dir="auto">This creates a circular wait, which is one of the necessary conditions for a deadlock to occur. In a deadlock situation, none of the processes can proceed because each is waiting for a resource held by another process in the cycle.</p>
]]></description><link>https://community.secnto.com//post/7534</link><guid isPermaLink="true">https://community.secnto.com//post/7534</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 25 Aug 2024 08:16:06 GMT</pubDate></item><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 25 Aug 2024 08:05:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moaaz" aria-label="Profile: moaaz">@<bdi>moaaz</bdi></a> said in <a href="/post/121">McQ Solved for Mid Tearm and Final Term</a>:</p>
<blockquote>
<p dir="auto">In producer-Consumer problem synchronization is required. On which shared area this<br />
synchronization actually affect?<br />
 Counter<br />
 Buffer (Page #45)<br />
 Entry section<br />
 Exit section</p>
</blockquote>
<p dir="auto">In the Producer-Consumer problem, synchronization is required to ensure that the shared resource (or shared area) is accessed safely by both the producer and the consumer. The synchronization actually affects the <strong>shared buffer</strong>.</p>
<h3>Shared Buffer</h3>
<ul>
<li>The shared buffer is a common area where the producer puts items and from where the consumer takes items.</li>
<li>The buffer typically has a fixed size, meaning it can hold a limited number of items at any given time.</li>
</ul>
<h3>Synchronization Affects:</h3>
<ol>
<li>
<p dir="auto"><strong>Buffer Access</strong>:</p>
<ul>
<li><strong>Producer</strong>: Must wait if the buffer is full before adding new items.</li>
<li><strong>Consumer</strong>: Must wait if the buffer is empty before taking an item.</li>
</ul>
</li>
<li>
<p dir="auto"><strong>Mutual Exclusion</strong>:</p>
<ul>
<li>Ensures that only one of the producer or consumer accesses the buffer at a time, preventing race conditions.</li>
</ul>
</li>
<li>
<p dir="auto"><strong>Condition Variables/Flags</strong>:</p>
<ul>
<li>Often, condition variables (or flags) are used to signal when the buffer is full or empty, so the producer and consumer know when they can proceed.</li>
</ul>
</li>
</ol>
<h3>Mechanisms Used:</h3>
<ul>
<li><strong>Locks/Mutexes</strong>: Ensure that only one thread (producer or consumer) can access the buffer at a time.</li>
<li><strong>Semaphores</strong>: Control the number of allowed accesses to the buffer, based on its current state (full, empty, etc.).</li>
<li><strong>Monitors</strong>: Provide a higher-level abstraction for managing mutual exclusion and synchronization.</li>
</ul>
<p dir="auto">By managing synchronization carefully on the shared buffer, the Producer-Consumer problem can be solved without causing data inconsistency or deadlock.</p>
]]></description><link>https://community.secnto.com//post/7528</link><guid isPermaLink="true">https://community.secnto.com//post/7528</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Sun, 25 Aug 2024 08:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 25 Aug 2019 08:52:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a><br />
Multics (Multiplexed Information and Computing Service) is a timesharing operating system begun in 1965 and used until 2000. The system was started as a joint project by MIT’s Project MAC, Bell Telephone Laboratories, and General Electric Company’s Large Computer Products Division.Aug 7, 2019<br />
Multics History</p>
<p dir="auto"><a href="https://multicians.org/history.html" target="_blank" rel="noopener noreferrer nofollow ugc">multicians.org</a></p>
]]></description><link>https://community.secnto.com//post/1194</link><guid isPermaLink="true">https://community.secnto.com//post/1194</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Sun, 25 Aug 2019 08:52:30 GMT</pubDate></item><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 25 Aug 2019 08:51:21 GMT]]></title><description><![CDATA[<p dir="auto">MULTICS?</p>
]]></description><link>https://community.secnto.com//post/1193</link><guid isPermaLink="true">https://community.secnto.com//post/1193</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sun, 25 Aug 2019 08:51:21 GMT</pubDate></item><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 25 Aug 2019 08:47:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zaasmi" aria-label="Profile: zaasmi">@<bdi>zaasmi</bdi></a></p>
<ol>
<li>A line replaceable unit, or LRU, is an equipment level repair.</li>
<li>LRU is also short for least recently used, which is an Oracle algorithm that replaces the oldest data to make room for new data when out of memory.</li>
</ol>
]]></description><link>https://community.secnto.com//post/1192</link><guid isPermaLink="true">https://community.secnto.com//post/1192</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sun, 25 Aug 2019 08:47:21 GMT</pubDate></item><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 25 Aug 2019 08:46:36 GMT]]></title><description><![CDATA[<p dir="auto">What is the LRU?</p>
]]></description><link>https://community.secnto.com//post/1191</link><guid isPermaLink="true">https://community.secnto.com//post/1191</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Sun, 25 Aug 2019 08:46:36 GMT</pubDate></item><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 25 Aug 2019 08:25:38 GMT]]></title><description><![CDATA[<p dir="auto">CS604 Final Term Paper Solved By <a class="plugin-mentions-user plugin-mentions-a" href="/user/moaaz" aria-label="Profile: moaaz">@<bdi>moaaz</bdi></a><br />
<a href="/assets/uploads/files/1566721516338-cs604-finalterm-solved-mcqs-solved-with-references-by-moaaz.pdf">CS604 - Finalterm Solved Mcqs Solved with  references by Moaaz.pdf</a> <a href="/assets/uploads/files/1566721516332-cs604-final-term-solved-subjective-with-references-by-moaaz.pdf">CS604 - Final term Solved Subjective with references  by Moaaz.pdf</a> <a href="/assets/uploads/files/1566721516329-cs604-finalterm-solved-mcqs-solved-with-references.doc">CS604 - Finalterm Solved Mcqs Solved with  references.doc</a> <a href="/assets/uploads/files/1566721516325-cs604-final-term-subjective-with-reference-solved-by-umair-saulat.doc">CS604- FINAL TERM SUBJECTIVE WITH REFERENCE SOLVED BY UMAIR SAULAT.doc</a> <a href="/assets/uploads/files/1566721516321-cs604-final-term-solved-subjective-with-references.doc">CS604 - Final term Solved Subjective with references.doc</a> <a href="/assets/uploads/files/1566721516312-cs604-final-term-solved-subjective-with-references-short.doc">CS604 - Final term Solved Subjective with references - Short.doc</a></p>
]]></description><link>https://community.secnto.com//post/1188</link><guid isPermaLink="true">https://community.secnto.com//post/1188</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Sun, 25 Aug 2019 08:25:38 GMT</pubDate></item><item><title><![CDATA[Reply to McQ Solved for Mid Tearm and Final Term on Sun, 16 Jun 2019 08:54:10 GMT]]></title><description><![CDATA[<p dir="auto"><a href="/assets/uploads/files/1560675222724-cs604-midterm-solved-mcqs-with-references-by-moaaz.pdf">CS604 - Midterm Solved Mcqs with references by Moaaz.pdf</a></p>
<p dir="auto"><a href="/assets/uploads/files/1560675222718-cs604-midterm-solved-subjective-with-references-by-moaaz.pdf">CS604 - Midterm Solved Subjective with references  by Moaaz.pdf</a></p>
]]></description><link>https://community.secnto.com//post/280</link><guid isPermaLink="true">https://community.secnto.com//post/280</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Sun, 16 Jun 2019 08:54:10 GMT</pubDate></item></channel></rss>