Boost logo

Boost Users :

Subject: [Boost-users] boost::thread_resource_error
From: Julien Martin (balteo_at_[hidden])
Date: 2010-10-19 10:17:09


Hello,

I am encountering the following error:

**********************************
terminate called after throwing an instance of
'boost::thread_resource_error'
  what(): boost::thread_resource_error
Abandon
**********************************

trying to run a threadgroup of 500 threads as follows:

thread_group * thgrp = new thread_group();
    for (int i = 0; i < NUMTHREADS; i++) {
        thgrp->create_thread(bind(&simulate, i, 100, 0.05, 0.2, 1.0, 100,
100, endPrices));
    }
    thgrp->join_all();

Can anyone please help. I don't understand why I get this error as I have no
resource problems with my machine.

Julien.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net