Hi,
I am wondering what may happen if such is used to multi core coding:
Code:#include <multi_core.h> int main(void) { ... use_n_cores(MAX_CORES); ... return EXIT_SUCCESS; }
Hi,
I am wondering what may happen if such is used to multi core coding:
Code:#include <multi_core.h> int main(void) { ... use_n_cores(MAX_CORES); ... return EXIT_SUCCESS; }
You need to be more specific about which API you're using.
An API might balance what you ask for, with what is actually available on any given machine.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
What do you mean "my API"?
You're the one who plucked 'use_n_cores' out of the void without any reference to what it does.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.