Is it possible to write an operating system in C? [closed]
Closed 8 years ago.
Multilevel Queue Scheduling (MQS) with Round Robin
I’m trying to use MQS to create a Gantt chart of 5 processes (P1-P5) as well as their waiting, response, and turnaround times (and averages of those metrics) within a CPU task schedule. Here’s the basic table of arrival times and bursts:
Could we set priorities only relative to each other instead of fixed numbers?
AFAIK the lowest priority has the highest number in scheduling and in my system all priorities must be different. But isn’t other policies thinkable? For instance, how about a policy where priorities are not numbers but say that a task’s priority would be defined only in term of another task’s priority, and that other task would be the closest in priority to the task whose priority we are setting. Then we would never use actual numbers for priorities, but we would keep a data structure sorting the tasks in priorities and when a task comes as new or is getting a different priority assigned, then this structure is rebalanced. Would this priority mechanism be feasible or do you not agree that it’s a working idea?
Could we set priorities only relative to each other instead of fixed numbers?
AFAIK the lowest priority has the highest number in scheduling and in my system all priorities must be different. But isn’t other policies thinkable? For instance, how about a policy where priorities are not numbers but say that a task’s priority would be defined only in term of another task’s priority, and that other task would be the closest in priority to the task whose priority we are setting. Then we would never use actual numbers for priorities, but we would keep a data structure sorting the tasks in priorities and when a task comes as new or is getting a different priority assigned, then this structure is rebalanced. Would this priority mechanism be feasible or do you not agree that it’s a working idea?
Could we set priorities only relative to each other instead of fixed numbers?
AFAIK the lowest priority has the highest number in scheduling and in my system all priorities must be different. But isn’t other policies thinkable? For instance, how about a policy where priorities are not numbers but say that a task’s priority would be defined only in term of another task’s priority, and that other task would be the closest in priority to the task whose priority we are setting. Then we would never use actual numbers for priorities, but we would keep a data structure sorting the tasks in priorities and when a task comes as new or is getting a different priority assigned, then this structure is rebalanced. Would this priority mechanism be feasible or do you not agree that it’s a working idea?
How is async implemented natively?
How is async logic implemented natively without threads? What would be the high level structure of the system?
Is it just a separate OS thread that gets and pushes requests and results in 2 queues?
I keep reading about a state machine and event loop when implementing async but I’m not quite sure about the general structure.
How is async implemented natively?
How is async logic implemented natively without threads? What would be the high level structure of the system?
Is it just a separate OS thread that gets and pushes requests and results in 2 queues?
I keep reading about a state machine and event loop when implementing async but I’m not quite sure about the general structure.
Seeking Advice: Ideal Single-Board Computer for Learning Kernel Development
I am a developer with experience in various types of development, it can be because side project but now I currently working with C++ and Java for 2 years. My goal (and it was also something have also want to reach) are to become a kernel developer. To achieve this, I’ve follow up tutorials, reading articles, and doing exercises and also do a certification by linuxfoundation (one was free so I do this one) but I would like to practice on something other than my PC and VirtualBox, as I’ve encountered everytime few complications with them and my laptop is not the best sadly for me.
Windows Console App vs Service
My Situation I work for a company that builds software for many other companies. When I learned installers weren’t built-in with VS2012, I was curious how to deploy. So far, I have just been dropping .exes on our clients servers using PowerShell scripts. Now I need a full-blown Windows service. I have seen many example […]
Windows Console App vs Service
My Situation I work for a company that builds software for many other companies. When I learned installers weren’t built-in with VS2012, I was curious how to deploy. So far, I have just been dropping .exes on our clients servers using PowerShell scripts. Now I need a full-blown Windows service. I have seen many example […]