After Last year's successful series of 'Microprocessor lab programs with explanation for 4th semester CS/IS'), this year it's 'SS & OS lab programs for 5th semester CS/IS'.
Also see, 'DBMS lab programs for 5th semester CS/IS'
Below are the 'SS & OS' Lab programs (click on each to open it in new window):
PART-A
Design, develop, and execute the following programs using LEX:
- 1 a) Program to count the number of characters, words, spaces and lines in a given input file.
- 1 b) Program to count the numbers of comment lines in a given C program. Also eliminate them and copy the resulting program into separate file.
- 2 a) Program to recognize a valid arithmetic expression and to recognize the identifiers and operators present. Print them separately.
- 2 b) Program to recognize whether a given sentence is simple or compound.
- 3) Program to recognize and count the number of identifiers in a given input file.
- 4 a) Program to recognize a valid arithmetic expression that uses operators +, -, * and /.
- 4 b) Program to recognize a valid variable, which starts with a letter, followed by any number of letters or digits.
- 5 a) Program to evaluate an arithmetic expression involving operators +, -, * and /.
- 5 b) Program to recognize strings ‘aaab’, ‘abbb’, ‘ab’ and ‘a’ using the grammar (a^nb^n, n>= 0).
- 6) Program to recognize the grammar (anb, n>= 10).
PART-B
Design, develop, and execute the following programs:
- 7 a) Non-recursive shell script to accepts arguments and print them in the Reverse order,
- 7 b) C program to create a child process and to read commands from the standard input and execute them.
- 8 a) Shell script that accepts two file names as arguments, checks if the permissions for these files are identical and displays their permissions.
- 8 b) C program to create a file with 16 bytes of arbitrary data from the beginning and another 16 bytes of arbitrary data from an offset of 48. Display the file contents to demonstrate how the hole in file is handled.
- 9 a) shell script to generate 'bundle.sh' to recover deleted file contents with the file.
- 9 b) C program that creates a child process and prints its process-id and id of its parent and then exits. The parent process waits for its child to finish and prints its own process-id and the id of its child process and then exits.
- 10) Design, develop and execute a program in C / C++ to simulate the working of Shortest Remaining Time and Round-Robin Scheduling Algorithms. Determine the average turn-around time. The input can be read from key board or from a file.
- 11) Using OpenMP, Design, develop and run a multi-threaded program to generate and print Fibonacci Series. One thread to generate the numbers up to the specified limit and another to print them. Ensure proper synchronization.
- 12) Design, develop and run a program to implement the Banker’s Algorithm. Demonstrate its working with different data values.
For some cool Video tutorial stuffs |
For latest updates on my blog |
Share your views about this article!