Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

How can I divide the tasks for diffrent cores?

E.g. 4 Cores func1() -> core1

func2() -> core2

func3() -> core3

func4() -> core4

Is there special libary for this? Or do I have to use the old fashioned way of integrating the functions in the main loop ?

( I'm using C++ on Windows)

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Even if there might be ways to select specific cores for parallel tasks, it's considered bad practice. Number of cores vary from machine to machine, and it's better to let the OS decide where to put the load. You should just create a few Windows threads and let the scheduler manage.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.