Skip to content

Ananya63/OS

Repository files navigation

OS

C programs for operating system.

  1. C program to implement orphan process.

  2. C program to create child process.

  3. C program to create zombie process.

  4. C program to write a string in parent process and read it in child process.

  5. C program that checks if two strings are same or not using two proceses.

  6. Write a Program to demonstrate the use of signal. The process will print a message infinitely until an interrupt signal occurs. It will handle the signal and wxill print a message along with the signal number that it has got.

    1. Write a program to demonstrate the use of signal. Parent process will stop until an alarm received from child process.
    2. Write a Program to create a child process. The parent will send a signal to the child every 5 seconds and the child will handle the signal and check if an input number is a leap year or not.
  7. Write a ‘C’ program in LINUX to create a thread that determines the summation of N natural numbers using POSIX thread library.

    1. WAP where two threads will synchronize each other to print the pattern "baabbaabbaab".
    2. WAP where a newly created thread will check a number is prime or not. The number is entered in main thread.
  8. Simulate the producer-consumer problem using multi-threading.

  9. Check input is palindrome or not using two processes- sender and reciever.

  10. Simulate Reader-Writer Problem using multiple processes.

(buffer.h and psem.h are header files that were used in program number 12_1 and 12_2.)

Releases

No releases published

Packages

No packages published

Languages