#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    0
    Rep Power
    0

    Post Creating directories in Unix using C language


    Hi
    I need help writing a c program that would create N directories and start N processes that would prompt the user for a file name, which it would then create in its respective directory. We can use semaphores in the program. Any help is appreciated.Thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    create a directory:
    mkdir(dirname);
    creating processes: createProcess (win****)

    creating threads is what you want!!!

    on win**** there is a function to display the save-file dialog. i cant remember right now, sorry.
    but it has a parameter to auto-create directories.

    why do you want to use semaphores? i donīt think you need IPC... use threads instead (or a simple for-loop???)
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    0
    Rep Power
    0
    Hi,
    Thanks for the help. Threads would be an easier option but I need to use semaphores, to see how they work.
    Thanks again

IMN logo majestic logo threadwatch logo seochat tools logo