| | |
What are forks????
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
No, beginners aren't allowed to use forks. They are a level 2 restricted system call (L2SYS). Talk to your manager about getting certified.
On a more technical note, yes I suppose you could do that, but there is no unfork() as far as I know, so if you want to do something like that and the two need to interact in a meaningful way, you either need to learn how to use shared memory, or how to use threads.
On a more technical note, yes I suppose you could do that, but there is no unfork() as far as I know, so if you want to do something like that and the two need to interact in a meaningful way, you either need to learn how to use shared memory, or how to use threads.
what? WHAT?
Forks are very unnecessary for most things not concerned with networking. Your post above is quite redundant, since I would assume you would fork if you wanted to try run prog1 & prog1 concurrently (obviously this isn't entirely true, but will appear that way). If you are willing to wait for prog2 to finish before proceeding with prog1, why use a fork?
That's because there's no such thing as fork() or unistd.h on your average windows box.
Win32 doesn't have anything like fork() as such, see the hoops cygwin has to go through in order to emulate it (poorly).
If you're doing the typical fork() followed immediately by exec(), then using createProcess is a reasonable substitute.
Win32 doesn't have anything like fork() as such, see the hoops cygwin has to go through in order to emulate it (poorly).
If you're doing the typical fork() followed immediately by exec(), then using createProcess is a reasonable substitute.
![]() |
Similar Threads
- using forks (C++)
Other Threads in the C++ Forum
- Previous Thread: !!!!!!!!!!!
- Next Thread: MUD help?
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






