![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| running servers parallel | soliberus | IP Networking | 1 | 06-03-2008 08:45 AM |
| Running scripts in parallel | nivas | Shell Programming and Scripting | 6 | 02-21-2008 05:44 AM |
| In C Program, determine if job is running | BCarlson | High Level Programming | 12 | 07-16-2006 01:05 PM |
| running a program for a specified time | prosputko | High Level Programming | 3 | 07-06-2005 02:39 PM |
| Running a program | perleo | UNIX for Dummies Questions & Answers | 3 | 08-23-2002 11:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
running a parallel program
hi ,
i need to run a parallel program . for example; program1 { array[]=" the second program should called here : program 2" the execution should continue } the 2nd program should recieve an array of information as argument and it should process parallel with program 1. |
|
||||
|
Quote:
parallel execution - in a single processor system it is only pseudo parallelism that can be guaranteed and not the concurrent execution (concurreny is just a perception) I dont find anything difficult or setback in making use of fork to split functionalities and proceed thereby |
|
||||
|
I don't want the control to return back to the parent process. The child process should execute parallely with parent process.
According to fork definition, a child process is created which is the duplicate of parent process's program space. so, i don't think so fork will solve this problem |
|
|||||
|
<array[]=" the second program should called here : program 2">
what are you expecting here, should the second program return you multiple values, to fill the array ? thats is not possible in a c program. regarding concurrent processing ( or pseudo concurrency ) you can use fork for sure. and programming for parallel processing on a system having multiple processor would be interesting tho. Do let me know if you find out how you can force your process to run on a particular processor. for eg, parent running on processor 1 and child on 2. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|