TBB is really brilliant. But, I'm not certain about somethings:
- Can TBB work in kernel mode? If I want to write codes for NIC driver in kernel mode, will it work? If yes, please tell me how to use it?
- Could anyone explain the following questions:
- If a process has 2 threads, how the 2 threads work in a 2-core processor?Do they work seperately on different cores until they finish their jobs? orthread 1 works on core1 for a momentwhile thread 2 workingon core 2, then thread 2 works on core 1 and thread 1 works on core 2? who schedules the working style?
- Just imagine that there is a processor with 1000 cores, then I issuse a process with 100 threads, how can I explicitly choose one core that is free to let one thread working on it andexit until its job finished(without intteruption by other threads)? That is: can programmers get fully control of each coreand set a explicit thread to work on it?
If any one knows the answer, pls give a detailed answer, with codes will be better. That's my appreciation!