Question

10. When a process is reading/writing a memory location (e.g. a variable), can other processes read...

10. When a process is reading/writing a memory location (e.g. a variable), can other processes read or modify the same memory location?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

------>

Most of the modern operating systems use virtual memory. In virtual memory, each process gets its own virtual address space. The virtual address space is divided into two different areas namely

1.The user space and

2.The system (or Kernel) space.

----->

The system space is the same for all processes. However, it is not writeable from user mode and most of the addresses are not readable or executable from user mode.

The user mode address space is unique for each process. Address 3000 in one process is usually not the same as address 3000 in another process.

It is usually possible to create shared memory areas that can be accessed by multiple processes.

------>

When you are reading or writing an address values written by one process and when other processes try to access them , the addresses are not accessible and they start crashing. By inaccessible, those addresses have not yet been created in the process's virtual address space. Even if they were created, they would not be the same memory as in your other processes.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Add a comment
Know the answer?
Add Answer to:
10. When a process is reading/writing a memory location (e.g. a variable), can other processes read...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT