Thread: Please help in Making a Fork() call and have the instances run every five minutes

  1. #1
    Registered User
    Join Date
    Dec 2014
    Posts
    13

    Post Please help in Making a Fork() call and have the instances run every five minutes

    Hi All,

    I am new to C programming,Please guide me in understanding Fork() calls.

    I have to write a C program in UNIX machine, and make two Fork Calls Inside it and have these two instances run every five minutes all round the clock.

    How to achieve this.

    I just need an Abstract Idea. Any help is much appreciated.

    Thanks in Advance.

  2. #2
    Registered User
    Join Date
    Sep 2014
    Posts
    364
    Code:
    […]
        while (1) {
            /* fork child */
    
            if ( /* end_trigger */ ) break;
            sleep(300);
        }
    […]
    I think this is not what you want.
    Show us your best effort and we can give you ideas.
    Other have classes, we are class

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. O/P is not coming properly....(fork() system call)
    By dojha00 in forum C Programming
    Replies: 5
    Last Post: 02-08-2012, 02:06 PM
  2. Replies: 1
    Last Post: 09-19-2010, 06:21 PM
  3. Making a Linux system call
    By ShamWow in forum Linux Programming
    Replies: 5
    Last Post: 03-29-2010, 10:59 AM
  4. making a phone call in a program
    By jverkoey in forum C++ Programming
    Replies: 1
    Last Post: 03-18-2004, 05:09 PM
  5. Converting MInutes to Hours and MInutes
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 08-30-2001, 08:07 PM

Tags for this Thread