Find the answer to your Linux question:
Results 1 to 3 of 3
i m trying to implement a scheduler in C. I need to insert a forked process into a queue and make it exec for 1 quantum say and then push ...
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    2

    running a stopped process

    i m trying to implement a scheduler in C. I need to insert a forked process into a queue and make it exec for 1 quantum say and then push it back in queue. Allocate another quantum l8r.. how do i do this??
    What r the different calls supported in the header unistd.h

  2. #2
    Linux Newbie
    Join Date
    Mar 2010
    Posts
    121
    You can use the kill() system call to send a signal to a process, sending SIGSTOP and SIGCONT. If you want some in-depth information about signals you can start with the man pages signal(7) (i.e. "man 7 signal") and kill(2), and the book Linux System Programming by Robert Love is also excellent.

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    2
    Thankyou.. It was really helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...