NEED HELP: BOOST THREAD

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Post by mongoose7 »

You need to see how much you can get out of it to know what the limits are. I can agree with him there. But I think his threading model may be letting him down. But there would be two problems here. Firstly, you can proably only render with one thread, so it is possible that threads will starve. Secondly, the mutexing itself.

If you cannot get to 100% on all CPUs, then is it a sceduling problem, you are running single-threaded from time to time, or you are in mutex hell.

I knew a guy who ran basic chess on his laptop. I tried to give him a real chess game, but he complained that the fan came on. Look, sometimes the fan has to run!
Dareltibus
Posts: 115
Joined: Mon May 17, 2010 7:42 am

Post by Dareltibus »

when a thread finish its work it simply shutdown. as always appens when you ask for help every one will tell its opinion without helping really.. I think all messages are OT since i simply asked some help for installing boost library..
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Dareltibus wrote:as always appens when you ask for help every one will tell its opinion without helping really..
Welcome to the internet...

However this attitude is great... "No I don't want to hear any other way. I KNOW that my way IS the best and all other methods just suck because they do things in a different way".
You won't come very far with this ;)
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
Dareltibus
Posts: 115
Joined: Mon May 17, 2010 7:42 am

Post by Dareltibus »

Yup. I know that every one here is a multithreading expert so my code sucks only because i'm using mutexes only.. :shock:

You can criticize my code when YOU SEE IT. but derogatory comments on my work are not wellcome.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

I think Sylence was referring to you, not to others.. (not sure eh? :) )

I have a build target for windows for the boost thread. But i'm not sure that this will compile also for linux. I tested 5 different threading libraries for my framework (take a look to the next release: IrrSolid 0.2. And i will not use boost.thread. since adding it to my project increase the executable size by 1 MB). Anyway i worked a day for got it working. boost.build is much better but you must follow the step by step tutorial and if it is not working you must write to the boost.thread mainteiner and wait for a response.

If you are interested in my build target i want back something of your work. (there are no working example about that so at least i want to see an executable that is using multythreading.). This sounds like a good deal... please don't answere there. send me a PM.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply