Is there any simple way to explicitly make an already multi-threaded application using a multi-core environment? (if available).
The first issue is how to determine if the runtime environment supports multi-core applications?
If I then determine that I can use multi-core functions, can I explicitly assign threads to work on different cores? If so, is the connection to the stream handled by the OS / hardware or do I have to get my hands dirty?
If your application is already loaded correctly, you have nothing to do. The execution and processing of the thread context is done for you.
, , , ? , . , , . Environment.ProcessorCount, , .
( ) , /, , plinq Parallel FX
, 2 ,
#
MSDN Somasegars MS June CTP 3.5 extenstions
MSDN
:
, Process.ProcessorAffinity, . , , , , , , .
. , . #. ParallelFX - -. -. ( VB 6). Packt Publishing, #. # 2008 2005 Threaded Programming. , , . , -. , , . http://www.packtpub.com/beginners-guide-for-C-sharp-2008-and-2005-threaded-programming/book I think he deserves an opportunity. I will let you know my feedback when I buy it.
Without going into details (I'm not sure how much information has yet to be announced), the next version of the .NET Framework will be more useful. You most likely will not want or will not think about managing flows manually. I am sure that additional information will be published after the PDC (end of October).