How to see a FIFO from all the threads?

Hello C programming fellows!!!

I'm doing a program with multiple threads in gnu/linux, ubuntu for beeing precise...

This program consist in multiple threads, as logical each thread do different things and communicate to each other using IPC.

The problem is that in "process 1" I have a FIFO, an ordinary one (using malloc), and I need the same FIFO to be poped a pushed from all the threads... I've been trying different things but nothing work...

Is this possible??? Where can I read something about this???

The other possibility is to make a FIFO for each thread and keep them updated using some invented protocol between threads, but I would prefer not doing this because I'm wasting lots of memory.

Someone have (is correct or I have to use has??) any idea???

Thanks in advance!!!

bye!

Yes it can be done. What you have to do is create a thread safe FIFO (queue). One place to look for implementation ideas is the Apache portable runtime utility apr_queue_* APIs.