How does a program execute in RAM?

radha gogia

radha gogia

@radha-BTDzli Oct 20, 2024
i just want to ask that who is responsible for bringing the programs from hard disk to RAM and after coming to RAM it becomes a process then where is the waiting queue and ready queue made in RAM portion exculding os or in os itself.

and if cpu scheduler takes the process to cpu ,then when does cpu generates address of the process or to be more specific for an instruction to run instruction cycle.

And is that address always a logical address which is of the virtual adress space in hard disk ,then how does it differ whether it is talking about c ,D or E drive.

so i really am not getting about that if a process resides in RAM ,then from where does the CPU gets the command of generating address for a particular instruction .

so plz just explain me very concisely about any program execution in cpu and is cache and RAM word are of same bit

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • avii

    avii

    @avii-TGGs8o Aug 30, 2014

    what have you tried? I really don't want to do your homework, so I am gonna give you a link which may answer your questions:

    <a href="https://books.google.co.in/books?id=gS8-xUE2rI4C&lpg=PP1&pg=PA406" target="_blank" rel="nofollow noopener noreferrer">Operating Systems 5th Edition - William Stallings - Google Books</a>
  • radha gogia

    radha gogia

    @radha-BTDzli Aug 30, 2014

    avii
    what have you tried? I really don't want to do your homework, so I am gonna give you a link which may answer your questions:

    <a href="https://books.google.co.in/books?id=gS8-xUE2rI4C&lpg=PP1&pg=PA406" target="_blank" rel="nofollow noopener noreferrer">Operating Systems 5th Edition - William Stallings - Google Books</a>
    my simple ques is that who prompts the cpu to generate address when cpu scheduler is responsible for carrying the process from RAM to cpu,and also the address generated by cpu is logical address then is that address is of the address space of c ,d or e drive ,that is how the page gets swapped ,fr that it must know the exact location i.e in which drive it must go,so who decides it.