Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Peformance: Processes v's Threads

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Smith - 21 Dec 2004 03:59 GMT
Hi,

I have a Service which is a single executable and 10-12 remoting
threads.  Each thread executes database SQL, writes to files on behalf
of clients.

Will a thread ever block the entire process when waiting for a
file/database?

Assuming a server which 2-4 CPUs are there any performance penalties
for having one process with 10 threads versus 5 processes with 2
threads?

thanks!

Tim
Aquila Deus - 21 Dec 2004 08:58 GMT
> Hi,
>
[quoted text clipped - 4 lines]
> Will a thread ever block the entire process when waiting for a
> file/database?

No. But real disk access may block the whole system, depending on the
driver. If you have 1MB RAM and try to write 100MB per second to
hard-disk, the computer would definitely hang.

> Assuming a server which 2-4 CPUs are there any performance penalties
> for having one process with 10 threads versus 5 processes with 2
> threads?

It usually takes more time to switch threads in different processes
because their data is not shared. Besides, since .NET's AppDomain can
provide isolation within a single process, you have no reason to use
multiple-processes at all (though AppDomain is not as solid as process
because of unmanaged code)

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.