1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Rep Power

    Operating systems assignment

    Hi, I having problems to solve this project (c programming). Can anybody help?

    Write a function mypause() that should have a functionality similar to the pause() system call.
    Test the mypause() function in a program that repeatedly blocks waiting for a signal. The program
    should capture the interrupt signal SIGINT (Ctrl-C) without ending its execution. The program should
    terminate when the signal SIGQUIT (Ctrl-\) is sent to the program. When the program terminates it
    should print the number of times that it received the SIGINT signal. Use the alarm signal (SIGALRM)
    to make the program print the message I am alive. every 3 seconds. The pause() or sigpause()
    system calls should not be used in any part of the solution to this problem.
  2. #2
  3. Lord of the Dance
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Oct 2003
    Rep Power
    You have to describe the environment/system you are working with.

    You have to describe and post what you have tried so far.

    No one will do your homework. We can help you, but you have to show your own effort.

IMN logo majestic logo threadwatch logo seochat tools logo