10CSL68 UNIX SYSTEMS PROGRAMMING AND COMPILER DESIGN LABORATORY syllabus for CS


Unit-1 List of Experiments for USP 0 hours

Write a C/C++ POSIX compliant program to check the following limits: (i) No. of clock ticks (ii) Max. no. of child processes (iii) Max. path length (iv) Max. no. of characters in a file name (v) Max. no.of open files/ process

Unit-2 List of Experiments for USP 0 hours

Write a C/C++ POSIX compliant program that prints the POSIX defined configuration options supported on any given system using feature test macros.

Unit-3 List of Experiments for USP 0 hours

Consider the last 100 bytes as a region. Write a C/C++ program to check whether the region is locked or not. If the region is locked, print pid of the process which has locked. If the region is not locked, lock the region with an exclusive lock, read the last 50 bytes and unlock the region.

Unit-4 List of Experiments for USP 0 hours

Write a C/C++ program which demonstrates interprocess communication between a reader process and a writer process. Use mkfifo, open, read, write and close APIs in your program.

Unit-5 List of Experiments for USP 0 hours

a) Write a C/C++ program that outputs the contents of its Environment list b) Write a C / C++ program to emulate the unix ln command

Unit-6 List of Experiments for USP 0 hours

Write a C/C++ program to illustrate the race condition.

Unit-7 List of Experiments for USP 0 hours

Write a C/C++ program that creates a zombie and then calls system to execute the ps command to verify that the process is zombie.

Unit-8 List of Experiments for USP 0 hours

Write a C/C++ program to avoid zombie process by forking twice.

Unit-9 List of Experiments for USP 0 hours

Write a C/C++ program to implement the system function.

Unit-10 List of Experiments for USP 0 hours

Write a C/C++ program to set up a real-time clock interval timer using the alarm API.

Unit-11 List of Experiments for Compiler Design 0 hours

Write a C program to implement the syntax-directed definition of “if E then S1” and “if E then S1 else S2”. (Refer Fig. 8.23 in the text book prescribed for 06CS62 Compiler Design, Alfred V Aho, Ravi Sethi, and Jeffrey D Ullman: Compilers- Principles, Techniques and Tools, 2nd Edition, Pearson Education, 2007).

Unit-12 0 hours

Write a yacc program that accepts a regular expression as input and produce its parse tree as output.

Last Updated: Tuesday, January 24, 2023