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 / Languages / Managed C++ / May 2004

Tip: Looking for answers? Try searching our database.

Garbage collector

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nadav - 17 May 2004 09:56 GMT
Hi

I wonder... does installing .NET framework may effect the performance of native process running on the same computer
Does the GC runs in the kernel or in the application layer? running the GC in the kernel may effect the performance of other 'native' processes while collecting unused memory
So.... does the Garbage collection process may effect the performance of process other then the one whos garbage is being collected

Nadav.
William DePalo [MVP VC++] - 17 May 2004 16:51 GMT
> I wonder... does installing .NET framework may effect
> the performance of native process running on the same
> computer?

No, not if you mean just installing it, without running anything.

> Does the GC runs in the kernel or in the application layer? running
> the GC in the kernel may effect the performance of other 'native'
> processes while collecting unused memory.

The processor mode is beside the point. All active applications compete for
the user of the processor(s). The only question is to what extent? You find
that answer by experimentation.

Regards,
Will
Nadav - 18 May 2004 11:31 GMT
Well, processes ( or actually threads ) running in the kernel have a priority much higher then ones running in the application, this will have a greater affect on the running applications then threads running in the application layer, this is why it is importent for me to understand where the GC runs...
William DePalo [MVP VC++] - 18 May 2004 22:11 GMT
> Well, processes ( or actually threads ) running in the kernel
> have a priority much higher then ones running in the
> application, this will have a greater affect on the running
> applications then threads running in the application layer,
> ...

Huh? On a platform where all threads are created by the kernel, all threads
are pre-emptively scheduled by the kernel and just about anyone and his
brother can call SetThreadPriority() and SetPriorityClass(), I don't get
your point.

> this is why it is importent for me to understand where the
> GC runs...

Then you might want to start reading here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/d
otnetgcbasics.asp


Regards,
Will
Carl Daniel [VC++ MVP] - 18 May 2004 22:20 GMT
> Well, processes ( or actually threads ) running in the kernel have a
> priority much higher then ones running in the application, this will
> have a greater affect on the running applications then threads
> running in the application layer, this is why it is importent for me
> to understand where the GC runs...

Kernel threads CAN have higher priority - they don't necessarily have higher
priority (for example, consider the thread(s) of the Idle process).

The .NET GC runs as a user-mode thread.  Of course, like any other thread,
it transitions in and out of the kernel as it does it's work.

-cd

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.