Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

stupid fork() the waster!!

  • 26-10-2005 4:48pm
    #1
    Closed Accounts Posts: 110 ✭✭


    hows thing's

    ok here is my issue

    Im doing a course in computer systems and I’m having trouble understanding the fork () system call and was looking to see if anyone could clarify this.

    Ok so for example I am in Linux/UNIX and I type

    cp file1 file2

    Now I don’t quite understand where fork comes into play. I assume somewhere in the OS files there is a program called cp and this program takes a number or args, namely the files it is to compare. But what is fork doing I mean in layman’s terms.

    Could someone if they know, talk about how the computer boots up gets its initial process running then goes about calling fork? I mean in all the OS books they say fork() get called by process A and creates an exact copy of itself [process B the child process] then they go there separate ways. Etc…… OK But what was process A? what did it look like?[ie was it running any programs etc], what was it doing before it called fork. Why do I need to exact process to do the same task? Ahhh this is driving me nuts.

    Any help would be great thanks.


Comments

Advertisement