PC Review


Reply
Thread Tools Rate Thread

c# multiprocessor

 
 
Pujo Aji
Guest
Posts: n/a
 
      13th Feb 2005
Hello,

I'm looking some tutorial or book about programming C# multitreading in
multiprocessor. Is anyone has experiance?

Sincerely Yours,
Pujo Aji


 
Reply With Quote
 
 
 
 
Sahil Malik
Guest
Posts: n/a
 
      14th Feb 2005
AFAIK, C#/.NET doesn't give you control down to the level of individual
processor level execution. Just use threads.


- Sahil Malik
http://codebetter.com/blogs/sahil.malik/




"Pujo Aji" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I'm looking some tutorial or book about programming C# multitreading in
> multiprocessor. Is anyone has experiance?
>
> Sincerely Yours,
> Pujo Aji
>



 
Reply With Quote
 
Pujo Aji
Guest
Posts: n/a
 
      14th Feb 2005
Hello,

Do you think it only work for one processor?

Sincerely Yours,
pujo
"Sahil Malik" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> AFAIK, C#/.NET doesn't give you control down to the level of individual
> processor level execution. Just use threads.
>
>
> - Sahil Malik
> http://codebetter.com/blogs/sahil.malik/
>
>
>
>
> "Pujo Aji" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello,
>>
>> I'm looking some tutorial or book about programming C# multitreading in
>> multiprocessor. Is anyone has experiance?
>>
>> Sincerely Yours,
>> Pujo Aji
>>

>
>



 
Reply With Quote
 
Wayne
Guest
Posts: n/a
 
      14th Feb 2005
You can still write threads, whether you have one CPU or multiples. The main
difference in a multiple CPU environment, that I've noticed, is that more
than one thread can actually execute at the same time. Where on a single CPU
thread 1 will have to be stopped by the OS so that thread 2 can get a time
slice. I've noticed over the years that using a Multi CPU set up tends to
show any threading issues I may have faster, and I believe that is due to
the running simultaneously of threads.

The concepts and implementation will be the same from your stand point.

--
Thanks
Wayne Sepega
Jacksonville, Fl


"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

"Pujo Aji" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> Do you think it only work for one processor?
>
> Sincerely Yours,
> pujo
> "Sahil Malik" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > AFAIK, C#/.NET doesn't give you control down to the level of individual
> > processor level execution. Just use threads.
> >
> >
> > - Sahil Malik
> > http://codebetter.com/blogs/sahil.malik/
> >
> >
> >
> >
> > "Pujo Aji" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> Hello,
> >>
> >> I'm looking some tutorial or book about programming C# multitreading in
> >> multiprocessor. Is anyone has experiance?
> >>
> >> Sincerely Yours,
> >> Pujo Aji
> >>

> >
> >

>
>



 
Reply With Quote
 
Pujo Aji
Guest
Posts: n/a
 
      14th Feb 2005

Hello Wayne,

Can you tell me what should I do if I would like to do programming with
more than 1 CPU, for example should my program run in as server first
before the thread able to be distributed automaticaly, or if my laptop
is a client How can I let my C# know which computers will be shared.

Basicaly,
If I just have two computers how can I setup so that it will run as
second CPU.

Thanks in advance

Sincerely Yours,
Pujo Aji

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Wayne
Guest
Posts: n/a
 
      14th Feb 2005
Ok, that is different than what I thought you were talking about. I would
suggest searching Google for Distributed Computing and go from there.

Simplistic description of what you need:

A server that each client would talk too, the server would have data that it
would hand off to each of the clients, the client would then do whatever
work is required of it on the data, then return the results to the server
and ask for more work.

Also would maybe want some way for the server to time out the data it gave
to the client, if it should have responded with a response in three days and
it didn't then the data can be given to another client to process.

hope this helps in someway.

"Pujo Aji" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hello Wayne,
>
> Can you tell me what should I do if I would like to do programming with
> more than 1 CPU, for example should my program run in as server first
> before the thread able to be distributed automaticaly, or if my laptop
> is a client How can I let my C# know which computers will be shared.
>
> Basicaly,
> If I just have two computers how can I setup so that it will run as
> second CPU.
>
> Thanks in advance
>
> Sincerely Yours,
> Pujo Aji
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      19th Feb 2005
Pujo -

I think if you write a multithreaded app, it will take advantage of multiple
processors, the framework/OS will abstract that for you.

In other words, .NET does not give you a way to do this

"Run this thread on processor #1".

- Sahil Malik
http://codebetter.com/blogs/sahil.malik/


"Pujo Aji" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> Do you think it only work for one processor?
>
> Sincerely Yours,
> pujo
> "Sahil Malik" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> AFAIK, C#/.NET doesn't give you control down to the level of individual
>> processor level execution. Just use threads.
>>
>>
>> - Sahil Malik
>> http://codebetter.com/blogs/sahil.malik/
>>
>>
>>
>>
>> "Pujo Aji" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hello,
>>>
>>> I'm looking some tutorial or book about programming C# multitreading in
>>> multiprocessor. Is anyone has experiance?
>>>
>>> Sincerely Yours,
>>> Pujo Aji
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA & Multiprocessor PCs Jim Microsoft Excel Programming 1 24th May 2006 05:43 PM
Uni to Multiprocessor BPG Microsoft Windows 2000 Hardware 0 24th May 2004 10:38 PM
Multiprocessor system =?Utf-8?B?Sm95?= Microsoft ASP .NET 1 15th Mar 2004 04:35 PM
Multiprocessor upgrade Harold Microsoft Windows 2000 Advanced Server 1 16th Oct 2003 03:34 PM
Multiprocessor Jeff Windows XP General 1 20th Jul 2003 01:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:42 AM.