473,505 Members | 14,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c# multiprocessor

Hello,

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

Sincerely Yours,
Pujo Aji
Nov 16 '05 #1
6 5953
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" <aj****@gmail.com> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl...
Hello,

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

Sincerely Yours,
Pujo Aji

Nov 16 '05 #2
Hello,

Do you think it only work for one processor?

Sincerely Yours,
pujo
"Sahil Malik" <co*****************@nospam.com> wrote in message
news:On**************@TK2MSFTNGP14.phx.gbl...
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" <aj****@gmail.com> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl...
Hello,

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

Sincerely Yours,
Pujo Aji


Nov 16 '05 #3
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" <aj****@gmail.com> wrote in message
news:OT**************@TK2MSFTNGP14.phx.gbl...
Hello,

Do you think it only work for one processor?

Sincerely Yours,
pujo
"Sahil Malik" <co*****************@nospam.com> wrote in message
news:On**************@TK2MSFTNGP14.phx.gbl...
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" <aj****@gmail.com> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl...
Hello,

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

Sincerely Yours,
Pujo Aji



Nov 16 '05 #4

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!
Nov 16 '05 #5
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" <aj****@gmail.com> wrote in message
news:ev**************@tk2msftngp13.phx.gbl...

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!

Nov 16 '05 #6
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" <aj****@gmail.com> wrote in message
news:OT**************@TK2MSFTNGP14.phx.gbl...
Hello,

Do you think it only work for one processor?

Sincerely Yours,
pujo
"Sahil Malik" <co*****************@nospam.com> wrote in message
news:On**************@TK2MSFTNGP14.phx.gbl...
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" <aj****@gmail.com> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl...
Hello,

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

Sincerely Yours,
Pujo Aji



Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
285
by: samtan | last post by:
have to develop 4 windows .NET Services which perform similar (but not identical) tasks. These are to be run on a 2 processor Win2k Server. How do I perform processor load balancing? that is make...
5
5212
by: dba_db2 at nospam gmx.net | last post by:
We have got a brand new mutltiprocessor machine IBM pseries server with 2 processors. Now we want to buy a IBM DB2 license for this box. Does anyone know whether it is possible to buy a single...
4
1154
by: Jon | last post by:
Ok, so say you have 4 servers, each with 4 processors. Each processor has its own application domain for your web application, and therefore has its own cache, right? If so, is there a load...
3
1378
by: bonse | last post by:
According to reference http://support.microsoft.com/default.aspx?scid=kb;en-us;815156 , I added <processModel enable="true" webGarden="true" cpuMask="8" /> on web.config, restart iis service,...
4
1334
by: Bob Altman | last post by:
Hi, Is there a way to detect when my program is running on a multiprocessor host computer?
0
1094
by: jacky shi | last post by:
Hi,all: I find a problem in my program related with multiprocessor.The OS is windows, and when it run on a singleprocessor machine, it's OK. But If the machine is multiprocessor, there will be...
0
1113
by: ghoshdibyajyoti | last post by:
Hi all, I need to build a module, where there is 3 programs running simultaneously. they are test1,test2,monitor. Now I need to implement that at a particular instant monitor will suspend...
0
1879
by: vijayasb | last post by:
Hi, I am using GetProcessTimes() API to calculate CPU usage of a process. In single processor system i get correct result , but in multiprocessor system i will get some abrupt and negative...
1
2012
by: Craig Nielsen | last post by:
Part of my job is to run speed tests on SW to quantify the speed and identify regressions. I run these tests on pc's which drive DUTs (equipment). The Stopwatch class has worked for me until I...
0
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.