Velpus Captiosus
Well-Known Coder
I was just wondering how a OS starts a process and how it knows when to end it.A program is a executable file.A file is a linked list , the only thing you need to tell it is from where to start but it is just a pointer.And we need a counter to keep track of the running processes so I imagine a
The OS will always have a counter value of 0. If we wanted to create a new process , we would simply create a instance of the struct Process and increase the value of counter by 1 .For each running process we will hop onto the next element of the linked list in between of a different process.Am I missing something here?
struct Process
{
int counter;
char*memoryLocation
};
The OS will always have a counter value of 0. If we wanted to create a new process , we would simply create a instance of the struct Process and increase the value of counter by 1 .For each running process we will hop onto the next element of the linked list in between of a different process.Am I missing something here?