473,224 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

Performance of separate processes V threads

Hi,

I am trying to understand the performance implications of running a
number of separate ActiveXexe processes as opposed to a single
ActiveXexe with multiple threads on a Windows 2000 server.

I have been told that Windows does not allocate a fixed memory space
to its processes, so they are always paged off to disk when inactive.
However, all the threads in a single process operate within the same
memory space, so are relatively quicker (presumably, if the single
process remains active, then all the threads will remain in memory,
not getting paged to disk).

This seems reasonable, except that the Windows server being used has
about 3GB of memory, each process takes up approximately 40k and there
will be only about 10 of these processes running in total. Surely
Windows will only write the processes to disk when it has no memory
available? Why would it use disk when there is still a lot of
available physical memory?

Thanks.
Jul 17 '05 #1
1 1821

"Michael Williams" <mi****************@iname.com> wrote in message
news:c8**************************@posting.google.c om...
Hi,

I am trying to understand the performance implications of running a
number of separate ActiveXexe processes as opposed to a single
ActiveXexe with multiple threads on a Windows 2000 server.

I have been told that Windows does not allocate a fixed memory space
to its processes, so they are always paged off to disk when inactive.
However, all the threads in a single process operate within the same
memory space, so are relatively quicker (presumably, if the single
process remains active, then all the threads will remain in memory,
not getting paged to disk).

This seems reasonable, except that the Windows server being used has
about 3GB of memory, each process takes up approximately 40k and there
will be only about 10 of these processes running in total. Surely
Windows will only write the processes to disk when it has no memory
available? Why would it use disk when there is still a lot of
available physical memory?

Thanks.


Here's two cents worth:

I think "always paged off to disk" should be changed to "always may be
paged off to disk". If, when, for how long, and why are questions best
left unanswered. Treat virtual memory as if it were memory, and leave
the management to the virtual memory software. In your case, there is a
very good chance they will not be paged out, unless the server gets very
busy with other tasks.

Separate processes have the advantage of being isolated from each
other - if one dies, the others are unaffected. Threads in a single
process will live or die together.

If you need a lot of shared data among the instances, marshalling data
across processes is quite a bit slower than using shared memory within a
process. If you don't need or use a lot of shared data, this is no
concern.

Jul 17 '05 #2

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

Similar topics

2
by: joerg | last post by:
Hello, we reached a quite interesting performance-limit while using JDBC type 4 to a DB2 V8.1 database. The DB2 is running on a Intel-based single CPU-Server with Linux OS. What we are doing is...
8
by: Michael C | last post by:
Anyone have any hints on improving the performance of C# UI? I'm filling a TreeView and ListView with information returned by a SQLDataReader and information read from the Registry. I'm working...
2
by: Shahid Siddiqui | last post by:
I want to know that whether the asp.net pages are served through separate threads or separate processes?
4
by: Bill Thorne | last post by:
We have a COM object that has been wrappered for use in .NET and which can make calls which can take a while to execute. These are mainframe integration calls that might perform a lot of data...
35
by: Carl J. Van Arsdall | last post by:
Alright, based a on discussion on this mailing list, I've started to wonder, why use threads vs processes. So, If I have a system that has a large area of shared memory, which would be better? ...
6
by: seb | last post by:
Hi, I am using pygtk for the first times. I am wondering what would be the best "pattern" to interface pygtk with a thread. The thread is collecting informations (over the network for...
6
by: Rich | last post by:
Hi, I know HOW to run these side by side. But what is the performance impact??? Microsoft make a big deal about how it is supported, but provide no guidelines as to potential performace or...
2
by: Jay Loden | last post by:
All, In studying Python, I have predictably run across quite a bit of talk about the GIL and threading in Python. As my day job, I work with a (mostly Java) application that is heavily threaded....
12
by: Ilyas | last post by:
Hi all I have an application which brings back 1000 records from a sql server database. Under the local asp.net development server provided with Visual Studio 2008, it takes about 1.8 seconds ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.