Is it possible in c # and in general to allocate memory in the stack for a separate thread - more or less than 1 MB? I was just told that it is impossible to allocate any more (well, okay), but no less. They say that the processor has five modes of operation (I did not go into details) - and for some of these modes on some kind of architecture (the word is empty for me - I still don’t understand this), you can still allocate more / less memory than 1 mb. Is it so? in the video course I’m going through, the author went inside the Thread class to demonstrate that this class has 4 constructors, where he paid attention to this one:
public Thread(ParameterizedThreadStart start, int maxStackSize); in which the second parameter indicates the size of the stack allocated for the stream. But at the same time I said that we can’t specify no more than no less than a megabyte - because ".... this is the structure (not literally struct - but in the portable) addressing memory in a protected processor mode" - as I understand it, that this "protected mode" is the standard mode of the processor ?!
But at the same time he said that we can’t specify no more than no less than a megabyte - because ".... such is the structure (not literally struct - but in the portable) addressing memory in a protected processor mode" - this is where the delivered In this topic question.