OCCI createEnvironment Blocks My Thread

Posted by sahs on Stack Overflow See other posts from Stack Overflow or by sahs
Published on 2010-05-07T04:39:44Z Indexed on 2010/05/07 4:48 UTC
Read the original article Hit count: 303

Filed under:
|
|

Hello,

I'm writing a multi-threaded application, where there is a main thread which distributes tasks to the worker threads. According to the task, a worker thread creates a connection, by using a global occi environment. When a worker thread completes its task, it closes the connection (I'm sure, there is no exception thrown while termination).

My problem is that after a while(sometimes 5 mins, sometimes 5 hours) the threads cannot get connection from the environment, and they get blocked there.

What can be the problem?

© Stack Overflow or respective owner

Related posts about c++

Related posts about multithreading