i want to create a pipeline in solaris using c POSIX. i have found lot of theories on what is a pipeline on the net but couldn't find any examples or even guide to implementing it.
i would appreciate it very much if someone could guide me to some docs or give me small examples. and the term concurrent is confusing me. is it the same as pipelining?
thanks in advance,
can anyone help me please....?
Do you understand the basic use of
Because if you don't, it's going to take one hell of an explanation.
thank you for the response. i was despairing of any reply...
i thought fork was for processes. i need to use threads - pthread library.
i know how to create threads, locks(mutex) but not pipelining. i can call sleep on a thread in order to give others a chance but it sleeps.
so, i'm looking for some guidance toward pipelining. i'm new to threads but i can pick up quickly. please help me.
>> i have found lot of theories on what is a pipeline on the net but couldn't find any examples
does this help?
A pipeline using threads is an abstract concept. It's not something you simply create using a function call or anything like that.
It refers to parallel computing strategy for solving a problem. And not all parallel computing problems are best suited using a pipeline strategy.
The implementation of a pipeline strategy is highly dependent on the problem being solved.
So what is a pipeline strategy?
The most common analogy is a factory assembly line where each station on the assembly line is responsible for a particular job.
In this analogy, each station is represented by one or more threads. When a thread at station A is complete, it passes control to the thread(s) at station B, and so on.
If you explain the problem your trying to solve, perhaps we can guide you towards an appropriate pipeline strategy for solving that problem. However, implementing a pipeline strategy requires a good deal of knowledge of multi-threaded programming and thread synchronization. Just creating threads and locks is one thing, but using them effectively is something else entirely.