GeeksforGeeks » Interview Questions

Microsoft Interview Question for Software Engineer/Developer about Operating System

(3 posts)
  • Started 4 months ago by prateek
  • Latest reply from Abhimanyu Vohra
  1. prateek
    guest
    Posted 4 months ago #

    There are two processes... One process(process 1) has a pointer to a variable in the other process(process 2)... Now, can the variable be updated using this pointer in process 1?

  2. Aashish Barnwal
    guest
    Posted 3 months ago #

    i f the processes do not have shared memory,then the variable cannot be updated through the pointer,

  3. Abhimanyu Vohra
    Member
    Posted 1 month ago #

    Also, if they have shared memory than also pointer address has to be offset by certain number based on how "mmap" maps it in 2 different processes.


Reply

You must log in to post.

RSS feed for this topic