Page 1 of 1

Quick Multi-Core Question

Posted: Sat Jan 05, 2008 11:10 pm
by 01000101
Hi, I've recently been thinking of implementing dual-core support in my OS. Does each core end up getting its own registeres? pipes? If so, would it be possible to set one core to take on network/packet handling and analysis while the other handle .... everything else (basic stuff, no instensity involved)?

Posted: Sun Jan 06, 2008 1:02 am
by bluecode
yes to evey question. I am not sure if a HT/Hyperthreading processor has separate pipes, but you were talking about dual-core anyway. But be aware that SMP is not just starting all the other cpus and than yelling "yeay, everything works in parallel". It takes a huge amount of synchronization in the kernel or your kernel will produce unpredictable results.

Posted: Sun Jan 06, 2008 11:41 am
by bewing
bluecode wrote: It takes a huge amount of synchronization in the kernel or your kernel will produce unpredictable results.
Unless your kernel is only running on one of those cores, and then all the synchronization problems go away again. (Except for IPC.)

Posted: Sun Jan 06, 2008 10:45 pm
by 01000101
yes, I plan to completely redesign the core libraries with dual-core capabilities. My two test machines are both c2d's so I might as well take advantage of their best feature. 64-bit processing is not needed at the moment, or probably ever.

Thanks for the answers.