Amazon Interview Question
SDE1sCountry: India
Interview Type: In-Person
When you run an executable the OS will create a process and run your program. More specifically, it will copy the executable file contents into the "pages" in memory, create page tables, update entry in inverted page table, etc.
Once the process unit is ready, it is put into the scheduler queue. The scheduler running its scheduling algorithms (round robin, priority based queues, etc.) will then eventually pick up the process and then run your program.
This is clearly covered in OS text books. You can also go an online search and gather more details on steps.
#include<stdio.h>
- Anonymous May 05, 2016int main()
{
printf("hello world");
}