Search:

Type: Posts; User: jbsloan

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,306

    OK, so should I repost the code for a response?

    OK, so should I repost the code for a response?
  2. Replies
    4
    Views
    2,306

    shared memory can not read value over 255

    I am currently implementing a Shared Memory ring buffer program for an assignment that writes several values in, from several processes, and then reads them out. Standard producer/consumer model. I...
  3. Replies
    2
    Views
    16,871

    That did it. Thanks a lot!

    That did it. Thanks a lot!
  4. Replies
    2
    Views
    16,871

    strcat causing segmentation fault?

    I am having a wierd issue. I am doing a simple strcat and getting a segmentation fault. Here is a code snippet.



    #include <stdio.h>
    #include <string.h>

    ...
  5. Replies
    1
    Views
    2,495

    pthread condition variables

    I am creating a ringbuffer that supports multithreaded calls from both consumers and producers, and, while I feel fairly confident that the code looks right, when I run it I find (with a debugging...
  6. Replies
    5
    Views
    1,802

    Thanks for your help. I was using g++ as my prof...

    Thanks for your help. I was using g++ as my prof had suggested it for catching when I forget to include necessary libraries.
  7. Replies
    5
    Views
    1,802

    This gives me an error: Invalid conversion from...

    This gives me an error: Invalid conversion from 'void *' to 'ringbuf_t *'

    When I add that to the code:
    [

    ringbuf_t
    *ringbuf_alloc(int capacity)
    {
    if (pthread_mutex_init(&mtx, NULL))
    ...
  8. Replies
    5
    Views
    1,802

    Passing a memory location back to main

    I am working on an assignment in which I can not modify main. I am trying to create a ringbuffer module so that the main program can call multiple ringbuffers at a time (it is actually...
  9. Replies
    2
    Views
    1,173

    log function causing an error

    I am currently working on a program that includes a special exponential function that calls the log function from with in it. (*the code is below). I am getting the following error:

    gcc -c gas.c...
Results 1 to 9 of 9