multi threading

There are no stupid questions, just stupid answers.
9 posts Page 1 of 1
cwake79605
Posts: 2
Joined: Tue May 21, 2019 3:41 pm
by cwake79605 » Tue May 21, 2019 3:46 pm
I am currently interested in developing in t3d, but i have recently discovered it can't multi thread. Just waned to check in the forums before i decide if this is the right tool for me.
Azaezel
Posts: 460
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Tue May 21, 2019 4:26 pm
Not so much 'can't' as 'doesn't'. There is currently a threadpool system in place, though it is used highly sparingly at present. Hopefully at some point we can all get together and eyeball making more pervasive use for it.
cwake79605
Posts: 2
Joined: Tue May 21, 2019 3:41 pm
by cwake79605 » Tue May 21, 2019 10:35 pm
thanks
marauder2k9
Posts: 257
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Fri May 24, 2019 1:10 am
That threadpool is interesting, does it mean that for multithreading you simply just need to create multiple threadpools and assign them to a different thread?
Azaezel
Posts: 460
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Fri May 24, 2019 7:15 pm
iiiiish. from the browse-around to date, you'd basically make a subsystem-specific pool, and have that manage the spool-ups and the like
marauder2k9
Posts: 257
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Sat May 25, 2019 12:58 am
spool up like a turbo charger :D will the subsystem need to have a way to specify the most processor intensive workitems and have them split to a new thread?
Azaezel
Posts: 460
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Sat May 25, 2019 2:28 am
Gotta admit, more than a bit rusty about WorkItem prioritization.
marauder2k9
Posts: 257
Joined: Wed Feb 18, 2015 7:36 am
by marauder2k9 » Sat May 25, 2019 2:35 am
im a bit rusty on multithreading altogether lol i know i read somewhere that running functions that require information from one another in parallel sometimes cause problems though,

for example if funcion 2 needs data from function 1 you cant run them on separate threads. Again im not sure but if function 1 and function 2 feed data to function 3 they can be run on separate threads that are then joined together and then function 3 is run
Azaezel
Posts: 460
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Sun May 26, 2019 8:10 pm
Right, among other things that'd be what lock() unlock() commands are for. Tells it to hold off on thread jumping till the actions performed between the two calls are completed. should be a join or merge in there someplace as well if i recall correctly. That's what ties the various threads back to into one rope, as it were.
9 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest