Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. memory questions

memory questions

Scheduled Pinned Locked Moved C#
csharpdata-structuresperformancequestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    theFrenchHornet
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • T theFrenchHornet

      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.

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • J Judah Gabriel 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

        T Offline
        T Offline
        theFrenchHornet
        wrote on last edited by
        #3

        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.

        J 1 Reply Last reply
        0
        • T theFrenchHornet

          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.

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups