Questions tagged [main-memory]

5 questions
2
votes
1 answer

Does a mutex lock guarantee that a thread will always store updated values into the main memory?

a. Does accessing a memory location with a mutex lock mean that whatever the critical code is doing to the mutexed-variables will end up into the main memory, and not only updated inside the thread's cache or registers without a fresh copy of values…
Physician
  • 483
  • 2
  • 7
1
vote
0 answers

If the amount of stack memory provided to a program is fixed then why does it grow downwards in the process architecture? Or am I getting it wrong?

So I read that when a program is loaded on the main memory , it asscociates along with it static data , stack memory and heap memory. Wherein the stack generally grows downwards while the heap grows upwards. What I am confused about is since the…
1
vote
2 answers

Allocation of local variables inside a loop in the main memory

Suppose I have a for loop and a local variable inside it: for(int i=0;i<10;i++){ // Outer loop int p[10]; // Local variable for(int j=1;j<10;j++){ // Inner loop p[j] = p[j-1]+1; } } When all the compiler optimisations are…
Deepak Tatyaji Ahire
  • 4,883
  • 2
  • 13
  • 35
0
votes
0 answers

How to allocate memory from a particular DRAM in the system?

I want to read and write data from a particular DRAM in my system. I know that I can list available DRAMs using decode-dimms command. But I didn't find a detailed explanation that how actually this can be done, And little confused how VA -> PA - >…
-1
votes
2 answers

Is it feasible to have virtual memory with unlimited RAM?

Let's suppose that I have a computer with unlimited RAM(Theoretical idea) to accommodate all the processes that are ready to be executed. Then do I still need the virtual memory ?. And if yes what can be the possible change in performance if my…
Tauro
  • 59
  • 7