Closed Thread
Results 1 to 3 of 3

Thread: Help with C program(gcc) in Linux

  1. #1
    b0b0#32 is offline Newbie
    Join Date
    Oct 2009
    Posts
    1
    Rep Power
    0

    Question Help with C program(gcc) in Linux

    Hi... I have a project for my college but unfortunately, I struggle in programming, apart from simple C programs . Anyway, the way I see it I think the code I need should be around 20-30 lines, so if somebody can provide me some help I"ll be really grateful. Here is the project:

    -A process Parent will produce 10 random integer numbers (rand).
    -Then the process Parent will produce (fork) 2 processes Children.
    -The processes Children will print their PID (getpid) and will sort (qsort, as <stdlib.h>) the integer numbers, the one in ascending order and the other in descending.
    -The sorted tables will be printed at stdout with the use of write.
    -The process Parent will standby (waitpid) until the processes Children finish their execution.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    asafe's Avatar
    asafe is offline Programmer
    Join Date
    Jul 2009
    Location
    Here
    Posts
    110
    Rep Power
    10

    Re: Help with C program(gcc) in Linux

    Wrong forum, wrong way to ask help.

  4. #3
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Help with C program(gcc) in Linux

    What are you having difficulty with? What code do you have so far?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-31-2011, 06:54 PM
  2. Replies: 2
    Last Post: 08-22-2010, 11:47 PM
  3. Scheduler/VB6 program running in Linux Fedora
    By pu8y in forum Visual Basic Programming
    Replies: 6
    Last Post: 11-26-2009, 11:51 AM
  4. How to Program Shared Memory Segments in C for LINUX
    By blackshadow in forum C and C++
    Replies: 0
    Last Post: 10-25-2009, 08:42 AM
  5. Replies: 11
    Last Post: 08-28-2009, 02:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

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