OK, so should I repost the code for a response?
Type: Posts; User: jbsloan
OK, so should I repost the code for a response?
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...
That did it. Thanks a lot!
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>
...
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...
Thanks for your help. I was using g++ as my prof had suggested it for catching when I forget to include necessary libraries.
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))
...
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...
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...