Hi, everything worked fine and I wanted you to know, you were right, CLONE_THREAD was not required, but he admitted that this information was missing in the assignment.
Type: Posts; User: The-Forgotten
Hi, everything worked fine and I wanted you to know, you were right, CLONE_THREAD was not required, but he admitted that this information was missing in the assignment.
That's great, thanks a lot.
Is clone still creating threads without "THREAD_CLONE" ?
My assignment says, I have to use threads, not processes to make this.
Well, in my opinion it works and so it...
siginfo_t info; printf("%i", waitid(P_ALL, 0, &info, WEXITED));
This always returns me -1, so there is an error, but I want to wait it for all clones....
pid = clone(adapter,...
Well, the policy is almost similar. If I post my code here and someone copies it, both of us will have the trouble. They don't make a difference between the people copying the code and the people...
I think i got the error, but how to solve it?
How to tell the "waitpid" function to wait for all processes created by clone?
The problem about posting the whole program is that following: After the deadline my teachers will "google" phrases of my program, so posting the entire program might cause much trouble.
I think I...
Well, the synchronization will be step two, but assignment one is to create this the way it is wanted, assignment two is the synchronization. At the moment there is no shared variable, so there is no...
void* childstack = malloc(CHILD_STACK_SIZE);
int i;
for (i = 0; i < THREADS; i++) {
printf("%i", clone(adapter, childstack + CHILD_STACK_SIZE - 1,
CLONE_VM |...
Hello,
I have an example of a method using openmp to create several threads which add "1" about 1 million times to an integers pointer, it's called "number*".
My task is to do the same using...
Found my error and fixed it, now I have another question. How to print the exit state of the execv call?
printf("Exit State: %i\n",execv(path, args));
works only, if an error occured.
Hi,
my task is to write a shell starting any program matching the input, e.g. .../Folder1/Folder2/Folder3/file
to make sure my program does what it is supposed to do I tried to start a simple...