1
\$\begingroup\$

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)

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

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.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.