MCA DCA7105 UNIX & SHELL PROGRAMMING

₹198.00

Scroll down for Match your  questions with Sample

Note- Students need to make Changes before uploading for Avoid similarity issue in turnitin.

Another Option

UNIQUE ASSIGNMENT

0-30% Similarity in turnitin

Price is 700 per assignment

Unique assignment buy via WhatsApp   8755555879

Quick Checkout

Description

SESSION JULY 2026
PROGRAM MASTER OF COMPUTER APPLICATIONS (MCA)
SEMESTER III
COURSE CODE & NAME DCA7105 UNIX & SHELL PROGRAMMING
   
   

 

 

Assignment Set 1

  1. In UNIX, every process has a Process ID (PID) and a Parent Process ID (PPID). Suppose a shell has PID 1000 and it creates a new process with PID 1200. Explain what the PID and PPID of the new process will be. Also explain, in your own words, how the parent–child relationship works between the shell and the new process.

(3+3+4 = 10 Marks)

Ans 1.

PID and PPID of the New Process

In this instance, the new process gets the PID 1200 from the kernel the moment it is created, and the PPID is 1000, the process ID of the shell that created the new process. How this works under the hood is by a system call known as fork(), which the shell uses to make a ‘nearly’ exact copy of itself. That copy, known as the child process, is assigned a new PID (1200 in this instance),

Its Half solved only

Buy Complete from our online store

 

https://smuassignment.in/online-store/

 

MUJ Fully solved assignment available for session Jul-Aug 2026.

 

Lowest price guarantee with quality.

Charges INR 198 only per assignment. For more information you can get via mail or Whats app also

Mail id is aapkieducation@gmail.com

 

Our website www.smuassignment.in

After mail, we will reply you instant or maximum

1 hour.

Otherwise you can also contact on our

whatsapp no 8791490301.

 

  1. What are UID and GID in UNIX? Explain their purpose and how they are used to manage users, groups, and access to system resources.

(4+6 = 10 Marks)

Ans 2.

Purpose of UID and GID

UID is the User ID and GID is the Group ID, and in fact this is how UNIX system really keeps track of what people are doing on a system, because a human-readable name like a user name is just a label for a number which the kernel then uses to track. Each user account on a Unix system has a unique UID and each process that the user runs also has the corresponding UID, and when the process attempts to perform an action requiring a permission, such as opening a file or writing to a directory, it uses that UID to determine if it should be granted. The concept of GID,

 

  1. Explain race condition in UNIX with a suitable example and describe how file locking can be used to prevent it.

(10 Marks)

Ans 3.

Meaning of a Race Condition

A race condition occurs whenever two or more processes access the same shared resource at approximately the same time, with the order in which the operations are carried out determining the outcome of the operations and neither the order nor the result being predictable or intended by any process designer. The problem is that the same code may work fine every time, except one time when the timing is just off, and there you have it, a notorious race condition that is

 

Assignment Set 2

  1. What is a signal in UNIX? Explain how signals are used to notify and control processes when an event occurs and discuss why signals are needed in UNIX process management. Give a suitable example.

(2+8 = 10 Marks)

Ans 4.

Meaning of UNIX Signals

In UNIX, a signal is a brief, as synchronous message that is delivered to a process to indicate that something has occurred: perhaps the user pressed Ctrl+C, perhaps a program attempted to divide by zero, perhaps a child process has completed, perhaps the system is requesting a process to shut down cleanly. The difference between a function call and a signal is that a program knows when it will

 

  1. Explain the process of implementing a new system call in the Linux kernel, highlighting the seven major steps and the kernel modifications required to make the system call functional and testable.

(10 Marks)

Ans 5.

Overview of Adding a System Call

It doesn’t suffice to write a function and call it a day to add a brand new system call to the Linux kernel. This entails going through several layers of the kernel to make the operating system aware of that function and to make user programs aware of it, and there are, essentially, seven major steps.

Steps One and Two Implementation and Declaration

The first step is to create the

 

  1. Explain how setsid() is used to create a new session in UNIX and how this mechanism helps in creating daemon processes.

(5+5 = 10 Marks)

Ans 6.

Creating a New Session with setsid()

setsid() is a system call that creates a new session, and a new process group, for the calling process, and detaches it from any controlling terminal that it might have had. In the UNIX world, a session is simply a group of process groups which share the same controlling terminal and the process that creates the session becomes its session leader, which the setsid() function gives to the