Author Topic: the use of ThreadPool library  (Read 4455 times)

jacey_48557

  • Not-a-newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
the use of ThreadPool library
« on: October 23, 2012, 10:15:09 PM »
    Now, i get an error when i create multy threads with the ThreadPool library, that

_get_errno() function returns ENOMEM when _beginthreadex() function called, so i get that there is not enough memory, but

if i should manage the memory myself when using ThreadPool library?

Can someone tell me that, how should i solve this problem,better give me some examples,thanks very much!
« Last Edit: October 23, 2012, 10:17:33 PM by jacey_48557 »

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: the use of ThreadPool library
« Reply #1 on: October 25, 2012, 12:49:31 PM »
How many threads are you creating? Maybe your stackSize parameter is too large.

jacey_48557

  • Not-a-newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: the use of ThreadPool library
« Reply #2 on: November 08, 2012, 02:36:39 AM »
How many threads are you creating? Maybe your stackSize parameter is too large.

appreciate for your answer .

That , mostly i have create about one hundred

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: the use of ThreadPool library
« Reply #3 on: November 08, 2012, 10:27:09 AM »
I don't know personally. I've never created more than say 10. I suppose you can find out on google though.