PPSC Lecturer Computer Science Quiz no 12 A.J. Bhatti September 15, 2020 Welcome to your PPSC Lecturer Computer Science Quiz no 12 Name Email The advantages of cooperating processes are Information Sharing Computation Speed Up Modularity All Of the above If we want a particular task to run faster, we must break it into subtasks each of which will be running in parallel with the others. Such a speedup can be obtained only if the computer has multiple processing elements (such as CPU’s or I/O channels. This process is known as Modularity Computation Speed up Information Sharing Both A & B We may want to construct the system in a modular fashion, dividing the system functions into separate processes or threads. This Process is Known as Modularity Computation Speed Up Information Speedup Information Sharing Even an individual user may have many tasks on which to work at one time. For instance, a user may be editing, printing, and compiling in parallel. This Process is known as information sharing modularity computation speed up convenience A producer process produces information that is consumed by a .......... process consumer Retailer Parent Child .......... provides a mechanism to allow processes to communicate and to synchronize their actions without sharing the same address space Interprocess Communication (IPC) Non Interprocess Communication (NIPC) IPC Both A & C The function of a message system is to allow processes to communicate without the need to resort to the ........... data Unshared Data shared Data Process Data All of the above If processes P and Q want to communicate, a ............. link must exist between them and they must send messages to and receive messages from each other through this ........ communication, Commitee Communication, Link Communication , Process Communication , Progress With ........................., each process that wants to communicate must explicitly name the recipient or sender of the communication direct communication In-direct communication Message Passing Inter Process Communication IPC With ......................., messages can be sent to and received from mailboxes. Here, two processes can communicate only if they share a mailbox indirect communication direct communication Message Passing IPC The Process of Communication between processes takes place by calls to send and receive primitives (i.e., functions). A-Synchronization Synchronization Buffering Un Bounded Capacity Message passing may be either blocking or non-blocking also called as .................. synchronous asynchronous synchronous and asynchronous All of these The sending process is .......... until the receiving process or the mailbox receives the message Terminated blocked Restart Starts The sending process sends the message and resumes operation is called blocking send Non-blocking recieve Non-blocking send All of them In ......... receive: The receiver blocks until a message is available Blocking Process Non Blocking Recieve All of the above In .......... receiver: The receiver receives either a valid message or a null Blocking NonProccess-blocking Non-blocking None of these The Process in Which Whether the communication is direct or indirect, messages exchanged by the processes reside in a temporary queue is known as ....... Buffering buttering Synchronization A-Synchronization UNIX and Linux operating systems provide many tools for ..................... interaprocess communication interprocess communication underprocess communication none of these A UNIX/Linux pipe can be used for IPC between ............. processes on a system Un-related processes Non-related processes Uni-related processes related processes Communicating processes typically have sibling or ............ relationship parent-child child parents-childs None of these Find the Correct Spellings Victory Victery Victary None of these Kalabagh is Situated in which District of Pakistan District Khushab Mianwali Sheikhupura Lahore Davis Cup is associated with A. Badminton B. Cricket C. Volleyball D. Tennis State Bank was inaugurated in A. 1947 B. 1948 C. 1949 D. 1950 The first mughal emperor of India is A. Akbar B. Hamayun C. Babar ✓ D. Tipu Sultan Related Author: A.J. Bhatti