Ive got a new computer, its a dual core, does that mean it has
2 cpu's?
Do you need threads to take advantage of any more speed it has?
coding for dual core
Started by rouncer, Aug 16 2007 08:36 AM
7 replies to this topic
#1
Posted 16 August 2007 - 08:36 AM
#3
Posted 16 August 2007 - 09:05 AM
Yes and yes. But generally its not as simple as just adding threads, you need to be able to give those threads independent work to do.
#4
Posted 16 August 2007 - 09:09 AM
rouncer said:
Ive got a new computer, its a dual core, does that mean it has 2 cpu's?
Quote
Do you need threads to take advantage of any more speed it has?
Note also that it doesn't stop with dual-core. Quad-core recently got affordable and there are already plans for octa-core...
#5
Posted 16 August 2007 - 10:39 AM
ok, thanks now i know for sure.
could someone give me a loose example of how (if its possible) you would
split work up to create a single octree to say insert a bunch of voxels
in.
could someone give me a loose example of how (if its possible) you would
split work up to create a single octree to say insert a bunch of voxels
in.
#6
Posted 16 August 2007 - 10:51 AM
rouncer said:
could someone give me a loose example of how (if its possible) you would split work up to create a single octree to say insert a bunch of voxels
in.
in.
#7
Posted 17 August 2007 - 07:21 AM
Ah right thanks, i see, one more thing...
do threads automatically assign themselves a cpu or do you
have to declare what processor to use when you make the thread.
do threads automatically assign themselves a cpu or do you
have to declare what processor to use when you make the thread.
#8
Posted 17 August 2007 - 07:49 AM
rouncer said:
do threads automatically assign themselves a cpu or do you
have to declare what processor to use when you make the thread.
have to declare what processor to use when you make the thread.
But you can control this to a large extent. In Windows, you can use SetThreadAffinity to restrict threads to certain CPU's/cores. Normally you shouldn't mess with this though. The OS generally knows best how to manage threads.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












