BC0056-UNIX OPERATING SYSTEM

Dear students get fully solved assignments

Send your semester & Specialization name to our mail id :

 

“ help.mbaassignments@gmail.com ”

or

Call us at : 08263069601

(Prefer mailing. Call in emergency )

 

 

ASSIGNMENT

 

 

PROGRAM BACHELOR OF COMPUTER APPLICATION
SEMESTER 5TH
SUBJECT CODE & NAME BC0056-UNIX OPERATING SYSTEM
CREDIT 4
BK ID B0973
MAX. MARKS 60

 

 

 

Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme.

 

 

Q.1 Explain the Layers of UNIX Operating System in detail.

 

Answer: –UNIX Operating System:- Unix (officially trademarked as UNIX) is a multitasking, multi-user computer operating system that exists in many variants. The original UNIX was developed at AT&T’s Bell Labs research center by Ken Thompson, Dennis Ritchie, and others. From the power user’s or programmer’s perspective, Unix systems are characterized by a modular design that is sometimes called the “Unix philosophy,” meaning the OS provides a set of simple tools that each perform a limited, well-defined function, with a unified file system as the main means of communication and a shell scripting and command language to combine the tools to perform complex workflows.

 

 

 

 

Q.2 Write a short note on

a. The fork() System Call

b. The pipe() System Call

 

Answer: –  System call fork() is used to create processes. It takes no arguments and returns a process ID. The purpose of fork() is to create a new process, which becomes the child process of the caller. After a new child process is created, both processes will execute the next instruction following the fork() system call. Therefore, we have to distinguish the

 

 

Q.3 Describe the UNIX file system.

 

Answer: – Most UNIX machines store their files on magnetic disk drives. A disk drive is a device that can store information by making electrical imprints on a magnetic surface. One or more heads skim close to the spinning magnetic plate, and can detect, or change, the magnetic state of a given spot on the disk. The drives use disk controllers to position the head at the correct place at the correct time to read from, or write to, the magnetic surface of the plate. It is often possible to partition a single disk drive into more than one logical storage area. This section describes how the UNIX operating system deals with a raw storage device like a disk drive, and how it manages to make organized use of the space.

 

 

 

Q.4 what is a Process? How to run a process at the background?

 

Answer:-A process is a mechanism in an operating system that can run a series of steps. The mechanism depends on the operating system. For example, on Linux an Oracle background process is a Linux process. On Windows, an Oracle background process is a thread of execution within a process.

A background process is a computer process that runs “behind the scenes” (i.e. in the background) and without user intervention. Typical tasks for these processes include logging, system monitoring, scheduling,[2] and user notification.

 

 

 

Q.5 Demonstrate how and when you can use the following commands: vi, cat, chmod, grep, man, pwd, ps, kill, mkdir, rm.

 

Answer:-

 

 

 

Q.6 Write a C program that illustrates the creation of child process using fork system call. One process finds sum of even series and other process finds sum of odd series.

 

Answer:-

 

Source Code::

==========

 

#include <stdio.h>

#include <sys/types.h>

#include <unistd.h>

Dear students get fully solved assignments

Send your semester & Specialization name to our mail id :

 

“ help.mbaassignments@gmail.com ”

or

Call us at : 08263069601

(Prefer mailing. Call in emergency )

 

Leave a Reply