How To Exam?

a knowledge trading engine...


Osmania University (OU) 2008 M.C.A Computer Aplications Programming Lab-VI(Operating Systems Lab) - Question Paper

Friday, 05 July 2013 04:45Web

FACULTY OF INFORMATICS

M.C.A. II-Year I-Semester exam

ques. Bank for Practical ques. Paper

Subject : Programming Lab-VI

(Operating Systems Lab)

1. Write a program to implement the producer-consumer issue using semaphores and shared memory.

2. Write a client-server program in which the client takes the name of the file as the input and server sends the contents of the file to the client, which display it on the screen.

3. Implement P and V operations on the semaphores using the system calls of UNIX and use them implement mutual exclusion.

4. Write a program to implement echo server using pipes.

5. Write a program to implement readers-writers issue using semaphores.

6. Write a program which normally keeps idle wakeup every I minute and reminds your appointments. The appointments are written in a file. Implement the above using alarm signal.

7. Write a program to create 2 processes. The parent process takes a word as input from the user and sends it to the child process. The child process counts the number of letters in the word and returns it to the parent process which displays the number on the screen. Implement the above using pipes.

8. Write a program to create 2 processes. The parent process takes a word as input from the user and sends it to the child process. The child process counts the number of letters in the word and returns it to the child process which displays the number on the screen. Implement the above using message queues.

9. Write a program to create 2 processes. The parent process takes a word as
input from the user and sends it to the child process. the child process looks up
for the word in a text file of words and returns yes or no message to the parent
process. Implement the above using pipes.

10. Write a program to create a child process. The parent process takes a word as
input from the user and sends it to the child process. The child process look up for
the word in a text file of words and returns yes or no message to the parent
process. implement the above using Message queues.

11.(a) Write a C program to list to display the command line arguments and the environment variables.
(b) Write a shell script rename all files whose names end with. c as. old
(For example example. c file should be renamed as example. old)

12. (a) Write a C program to redirect the standard output (file descriptor 2) to a file name " Examdata".
(b) Write a shell script rename all files whose names end with. c as. old
(For example example. c file should be renamed as example. old)

13. Write a program to create a child process. The parent process takes the name of a file and sends it to the child process and the child process obtains the number of lines, words and the characters which it returns to the parent process. The parent process then display them on the screen. Use pipes for inter process communication.



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Osmania University (OU) 2008 M.C.A Computer Aplications Programming Lab-VI(Operating Systems Lab) - Question Paper