1 Shell programming
A. Write a program to handle student data base with options given below,
a) Create data base. b) View Data Base. c) Insert a record.
d) Delete a record. e) Modify a record. f) Result of a particular student. g) Exit.
B. Menu driven program for
a) Find factorial of a no. b) Find greatest of three numbers c) Find a prime no
d) Find whether a number is palindrome e) Find whether a string is palindrome
C. Write shell program using command-line argument for
a. Finding biggest of three numbers b. Reversing a number
c. Accept a number N and a word and print the word N times, one word per line
d. Sum of individual digits of a 4-digit number (1234 -> 1+2+3+4=10)
2 AWK programming (Assignment A and B from shell programming)
3 Implement following programs to exhibit UNIX Process Control.
A. Program where parent process sorts array elements in descending order and child process sorts array elements in ascending order.
B. Program where parent process Counts number of vowels in the given sentence And child process will count number of words in the same sentence. The above programs should use UNIX calls like fork, exec and wait. And also show the orphan and zombie states
5 Deadlock avoidance using Banker's Algorithm.
6 Simulation of Memory allocation algorithms ( First Fit, Best Fit , Next Fit )
7 Simulation of Page replacement algorithms ( FIFO, LRU, Optimal)
8 Mutual Exclusion and Synchronization of threads using POSIX Semaphores and/or Mutex
(Reader-Writer problem or Dinning philosopher problem)
9 Inter-process Communication for Producer-Consumer problem in UNIX (Pipes or Shared Memory).
1. Unix Concepts and Applications By Sumitabha Das,ISBN 9780070635463,TMH
2. Beginning Linux Programming By Neil Matthew & Richard Stones,ISBN-978-81-265- 1571-4,WILEY-INDIA.
3. UNIX Network Programming By Richard Stevens,ISBN-978-81-203-0749-0,PHI
4. UNIX Systems Programming Communication, Concurrency and Threads 2nd Edition, Kay Robbins, Steve RobbinsJun 2003, Hardback, 912 pages ISBN13: 9780130424112
5. SED and AWK Programming O’Rielly Publication, ISBN 97-881-73660-788