in reply to Re^2: Forking Multiple Threads
in thread Forking Multiple Threads
That's not how fork works. There is nothing I can do to help you further. I recommend you learn about how fork works, and then find out a way how to store your data before the child program finishes to communicate with the parent. Maybe a logfile for each child works for you.
Mixing threads and fork is something I highly advise against, and mixing database access and threads or fork also something to avoid.
If you have "outside" (that is, homework) requirements to use both, threads and fork, the assignment likely was given to you that way so you learn about fork and threads and the difference and advantages and disadvantages of both. I recommend that you review your course material for more information or ask the person who gave you the requirement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Forking Multiple Threads
by anshumangoyal (Scribe) on Feb 08, 2012 at 12:18 UTC | |
by BrowserUk (Patriarch) on Feb 08, 2012 at 12:55 UTC | |
by Corion (Patriarch) on Feb 08, 2012 at 12:24 UTC |