Search:

Type: Posts; User: v3dant

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,062

    that did the work, thanks

    that did the work, thanks
  2. Replies
    5
    Views
    2,062

    getting semaphores to work

    #include <iostream>
    #include <sys/types.h>
    #include <unistd.h>
    #include <pthread.h>
    #include <semaphore.h>
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    using namespace std;
  3. Replies
    1
    Views
    5,517

    previous post

    sorry i accidentally posted in the C++ section should have been in the C
  4. Replies
    1
    Views
    5,517

    help with semaphores

    /* Includes */
    #include <unistd.h> /* Symbolic Constants */
    #include <sys/types.h> /* Primitive System Data Types */
    #include <errno.h> /* Errors */
    #include <stdio.h> /*...
  5. Replies
    2
    Views
    1,787

    i got it nevermind

    i got it nevermind
  6. Replies
    2
    Views
    1,787

    segmenation fault when executing

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <unistd.h>
    #include <fcntl.h>
    #include <sys/time.h>
    #include <math.h>
    #include <string.h>
  7. Replies
    1
    Views
    1,291

    error on in algorithim

    struct block {
    int size;
    struct block *next;
    char data[1];
    };

    struct heap {
    int max;
    struct block *free[1];
    };
  8. that did the trick thanks dave

    that did the trick thanks dave
  9. keep getting Segmentation fault when executing

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <unistd.h>
    #include <fcntl.h>
    #include <sys/time.h>
    #include <math.h>
  10. Replies
    4
    Views
    8,071

    the first return statement is for testing...

    the first return statement is for testing purposes i just want to get the drand48 function to work. also i am using my own priority queue "PQ.h". I want to be able to use drand48 with visual studio...
  11. Replies
    4
    Views
    8,071

    help with getting drand48() to work

    #include <iostream>
    #include <ctime>
    #include <stdio.h>
    #include <stdlib.h>
    #include "PQ.h"

    using namespace std;

    int main()
    {
  12. Replies
    3
    Views
    3,336

    a point of threads to create multiple threads

    #include <pthread.h>
    #incldue <stdlib.h>
    #include <cstdio.h>
    #include <calloc.h>


    void *testing(void *threadid)
    {
    printf("hello");
    pthread_exit(NULL);
  13. Replies
    7
    Views
    3,170

    but now when i put a two element list into the...

    but now when i put a two element list into the buffer i can output the first element, but the second element outputed is 0.




    #include <stdio.h>
    #include <stdlib.h>
    #include <pthread.h>...
  14. Replies
    7
    Views
    3,170

    that it did, thanks alot

    that it did, thanks alot
  15. Replies
    7
    Views
    3,170

    #include #include ...

    #include <stdlib.h>
    #include <pthread.h>
    #define SUMSIZE 100
    #define BUFSIZE 10

    int *buffer [BUFSIZE];
    int bufin = 0;
    int bufout = 0;
    pthread_mutex_t buffer_lock = PTHREAD_MUTEX_INITIALIZER;
  16. Replies
    7
    Views
    3,170

    pthread producer/consumer

    #include <stdio.h>
    #include <stdlib.h>
    #include <pthread.h>
    #define SUMSIZE 5
    #define BUFSIZE 8

    int *buffer[BUFSIZE];
    int bufin = 0;
    int bufout = 0;
    pthread_mutex_t buffer_lock =...
  17. Replies
    7
    Views
    2,510

    i tried doing that, now it gives me a...

    i tried doing that, now it gives me a /var/tmp//ccjC6FRg.o(.text+0x62): In function `main':
    : undefined reference to `pthread_join'

    I have #include<pthread.h>
  18. Replies
    7
    Views
    2,510

    when i execute that code i get a: Segmentation...

    when i execute that code i get a: Segmentation fault (core dumped)
  19. Replies
    7
    Views
    2,510

    creating POSIX threads in UNIX

    #include <pthread.h>
    #include <iostream>
    using namespace std;


    void myfunc()
    {
    cout<<"hello"<<endl;
    }
    int main()
  20. Replies
    3
    Views
    1,802

    according to the specs i have to use one of the...

    according to the specs i have to use one of the exec functions to create a new child process image.....
  21. Replies
    3
    Views
    1,802

    exec functions under unix

    #include <iostream>
    #include <cstring>
    #include <ctime>
    #include <unistd.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <stdio.h>
    #include <poll.h>
    #include "string2int.h"
    using...
  22. Replies
    3
    Views
    1,235

    keep getting a parse error

    #include <iostream>
    #include <cstring>
    #include <ctime>
    #include <unistd.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <stdio.h>
    #include "string2int.h"
    using namespace std;
  23. Replies
    6
    Views
    1,321

    #include #include #include...

    #include <iostream>
    #include <cstring>
    #include <ctime>
    #include "string2int.h"
    #include <unistd.h>
    #include <sys/types.h>
    #include <stdlib.h>
    #include <stdio.h>
    using namespace std;
  24. Replies
    6
    Views
    1,321

    #include #include #include...

    #include <iostream>
    #include <cstring>
    #include <ctime>
    #include <unistd.h>
    #include <sys/types.h>
    #include <stdlib.h>
    #include <stdio.h>
    using namespace std;

    #define BSIZE 512
  25. Replies
    6
    Views
    1,321

    thansk that worked

    thansk that worked
Results 1 to 25 of 29
Page 1 of 2 1 2