I am a beginner in parallel computing and been fooling around with different packages in multithreading.
My question is very specific:
I want to write a code to do multithreading… and i want to know is there any way that two or more threads can communicate with each other while in multithreading…
can i call a result from another thread (or wait for it if it has not calculated) to a different thread provided both or more are working on same?
This might sound foolish as if a thread is waiting for a result from another thread it is same as single threading but what if there are certain instances where the result from another thread is required as that task is performed on say i_th thread…?
Can it give performance improvents…?
Any thoughts are helpful…
And please let me know where I am thinking wrong