memory questions
-
How much memory is available to a C# application? Is there any such thing as needing to specify stack size in a C# build? Thanks for any information or pointers to anything I can read on the subject.
-
How much memory is available to a C# application? Is there any such thing as needing to specify stack size in a C# build? Thanks for any information or pointers to anything I can read on the subject.
A C# app is allowed to access as much memory as any other application on the system. You don't need to specify a stack size per thread; the CLR allocates 1MB stack size by default. You can, however, specify the maximum stack size when starting a thread. See the System.Threading.Thread constructor[^]. p.s. your questions sound a little bit like a homework assignment. Are they?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Dumbest. Movie. Title. Evaaar. The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
A C# app is allowed to access as much memory as any other application on the system. You don't need to specify a stack size per thread; the CLR allocates 1MB stack size by default. You can, however, specify the maximum stack size when starting a thread. See the System.Threading.Thread constructor[^]. p.s. your questions sound a little bit like a homework assignment. Are they?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Dumbest. Movie. Title. Evaaar. The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
Thanks for your reply Judah. Answer to the stack question is clear - thanks. What determines the amount an application can access - based on your RAM/Disk size? Determined by the operating system? How do I determine what this amount is? In response to your p.s.: No, not homework questions. I am not currently enrolled in any formal or informal class. The questions arose solely from my own wonderings.
-
Thanks for your reply Judah. Answer to the stack question is clear - thanks. What determines the amount an application can access - based on your RAM/Disk size? Determined by the operating system? How do I determine what this amount is? In response to your p.s.: No, not homework questions. I am not currently enrolled in any formal or informal class. The questions arose solely from my own wonderings.
theFrenchHornet wrote:
What determines the amount an application can access - based on your RAM/Disk size? Determined by the operating system? How do I determine what this amount is?
That would be the OS, and the OS is limited in what it can hand out based on your hardware. For example, 32 bit operating systems support only up to 4 GB of RAM. However, if the combine memory usages of all processes running on the system are beyond 4 GB, the OS will use the hard disk as a backup store. That's a simplified, high-level view of it; if you need a more precise technical answer about the OS and hardware, this forum may not be the best place to ask.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Dumbest. Movie. Title. Evaaar. The apostle Paul, modernly speaking: Epistles of Paul Judah Himango