I am still beginner in c++. I need an advice about problem I have.
I have to make 3 paths to run simultaneously between the client and the server . I have to use like a multiplexer and de- multiplexer and I do not know how to do it until now in C++???
The other problem I have how can use single queue to distribute the data considering the bandwidth for each path?
any advice/ examples / functions can be used in c++ for these ideas?
I finished the basic course at the university . Unfortunately, no practice with thread function. If there is other idea instead of using thread function it will be great. If not I would like to know more how I can do it by thread ?
:)) yes @Framework :)) @lolo25 : i think you arent beginner in C++ !! just way of execute several while( true ) in c++ lan you must use thread but this is better you ask your question in windows programming ! we have 2 function for creating thread in c++ :
createthread in <windows.h>
_beginthread or _beginthreadex in <process.h>
I think threads are better off behind concept of a library such as std::thread or more portably, boost::thread.
A thread isn't a complex concept. You give the thread a function to run, and it generally returns immediately but the thread is still running! In other words, a thread is just a simultaneous area of execution along with the main thread. The concepts that surround the simple thread concept are generally a tad more difficult to grasp such as the thread mutex and lock, the thread pool, etc. I suggest a quick google search for those terms.