Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

operating systems 7) When running under UNIX and we \"fork a child\" which is tr

ID: 663046 • Letter: O

Question


operating systems

7) When running under UNIX and we "fork a child" which is true? A. There is a new program process, B. We loaded into the new process are guilty of child abuse. C. A new process is created but it is empty. D. new process is created that is an exact copy of the parent process None of above 8) A mailbox is maintained by the operating system between two processes for both direct and indirect message passing inter-process communications 9) Imagine that a host with P wishes to download a file from the web server at IP address 150.55.66.77 address 202.28.15.123. Select valid socket for a connection between this pair of hosts. A. 150.55,66 77:80 and 202.28.15.123:80 B, 150.55.66,77 150 and 202.28.15.123:80 C, 150.55.66.77:2000 and 202.28.15.123 80 D. 150.55.66 77:80 and 202.28.15.123:3500 10) The Apple Macintosh Mac os x operating system uses which of the following operating-system structures? A. Simple Structure B. Layered Approach C. Microkernels D. Modules E. Hybrid structure 11) Which one of the following directly controls operations on computer hardware A. Operating system kernel B. The command interpreter C. Application programs 12) Which of the following are shared across threads in a multithreaded process? A. Register values B. Data C. Stack memory D. Program counter 13) Which of the following is a way that a child process can terminate? A. The parent process aborts the child process B. The parent process terminates itself. C. The child process finishes normally D. A and C. E. All of the above 14) User threads are slower to create and mange than Kernel threads B. False

Explanation / Answer

======================================================================
7.
Ans:
----
   C. A new process is created that is exact copy of the parent proces.

Explanation:
------------

A new process is created by using fork command and it is same as parent process
differ by process id (PID).
======================================================================
8.
Ans:
----
   A.True
  
Explanation:
------------

A mail box is maintained by OS between two processes for direct and indirect IPC.
======================================================================
9.
Ans:
----
   C. 150.55.66.77:2000 and 202.28.15.123:80

Explanation:
------------

The file is being tranfered from port 2000 of ip address 150.55.66.77 to 202.28.152123
to port 80.

======================================================================
10.
Ans:
----
   C. Microkernels

Explanation:
------------

   The Max OSX architecture relies on the Mach microkernel for basic system management services, and the BSD kernel for additional services. Application services and dynamically loadable modules
( kernel extensions ) provide the rest of the OS functionality:

======================================================================
11.
Ans:
----
   A. Opearting system kernel

Explanation:
------------

   A kernel connects the application software to the hardware of a computer

======================================================================
12.
Ans:
----
   B.Data

  
Explanation:
------------

   In multi-threading programming Data and Code will be shared across threads.
Where as register values ,stack memory and program counter are separate for each
thread.
  
======================================================================
13.
Ans:
----
   D. A and C.
Explanation:
------------

   A child proces can terminate when ever parent process aborts the child process.
or the child process finishes normally.

======================================================================
14.
Ans:
----

   B. False
Explanation:
------------

Kernel threads are generally slower to create and manage than the user threads.
========================================================================