Search:

Type: Posts; User: The-Forgotten

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    5,703

    Hi, everything worked fine and I wanted you to...

    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.
  2. Replies
    16
    Views
    5,703

    That's great, thanks a lot. Is clone still...

    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...
  3. Replies
    16
    Views
    5,703

    siginfo_t info; printf("%i", waitid(P_ALL, 0,...

    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,...
  4. Replies
    16
    Views
    5,703

    Well, the policy is almost similar. If I post my...

    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...
  5. Replies
    16
    Views
    5,703

    I think i got the error, but how to solve it? ...

    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?
  6. Replies
    16
    Views
    5,703

    The problem about posting the whole program is...

    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...
  7. Replies
    16
    Views
    5,703

    Well, the synchronization will be step two, but...

    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...
  8. Replies
    16
    Views
    5,703

    void* childstack = malloc(CHILD_STACK_SIZE); ...

    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 |...
  9. Replies
    16
    Views
    5,703

    clone problems

    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...
  10. Replies
    3
    Views
    1,885

    Found my error and fixed it, now I have another...

    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.
  11. Replies
    3
    Views
    1,885

    Execv Problem

    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...
Results 1 to 11 of 11