Search Results

Search: Posts Made By: ephesos
Forum: Programming 11-08-2011
17,427
Posted By ephesos
I can't believe how simple that was, it works...
I can't believe how simple that was, it works now. You have my sincere gratitude !
Forum: Programming 11-08-2011
17,427
Posted By ephesos
I tried to do that, it still returns 4, which is...
I tried to do that, it still returns 4, which is also the size of an int in my debian.
Forum: Programming 11-07-2011
17,427
Posted By ephesos
If you follow the code more closely you'll notice...
If you follow the code more closely you'll notice that it's only the parent that calls fork(), so what i have is a parent with n children processes.

Easy way to check this, do:

int pid =...
Forum: Programming 11-07-2011
17,427
Posted By ephesos
I followed your advice on checking the returned...
I followed your advice on checking the returned value of read () and write (), read returns 4 bytes, which is the same as what write() returns, I believe that means I only get the chance to read the...
Forum: Programming 11-07-2011
17,427
Posted By ephesos
Corona, that's my exact problem, I'm not allowed...
Corona, that's my exact problem, I'm not allowed to make multiple reads this time, I already solved it that way by waiting for a child, reading the pipe, repeat :D . I have to figure out a mechanism...
Forum: Programming 11-07-2011
17,427
Posted By ephesos
Sorry about that, I'm not a native english...
Sorry about that, I'm not a native english speaker. I'll try to give an example:

suppose we have this array:
arr[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
I want to compute the sum of it's...
Forum: Programming 11-07-2011
17,427
Posted By ephesos
Multiple children and single pipe
Greetings everyone, I need a bit of help in solving the following problem:
I'm given an array of numbers and I have to compute the sum of the array elements using n processes, and the inter process...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 04:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy