I use threads (from 0 to 100) and it became interesting to me, is it possible to determine the core on which the thread will be executed? If so, is it even necessary? Can I just run 100 threads?
1 answer
I do not know if this is implemented in php, but in principle (at least, if we talk about pthreads in Linux), all this is possible.
Read:
- man pthreads
- man sched_setaffinity
- man pthread_setaffinity_np
- and SEE ALSO to them.
Do I need to set the kernel? I do not think that this may be relevant for problems solved in PCP.
|
rdtscp. I doubt thatPHPhas access tordtscp. But even if it is organized, what will this knowledge give you? - mega