Need a standard fifo algorithm. for a cpu shceduler so one command comes in at a time.
Please help Thank yOu
Need a standard fifo algorithm. for a cpu shceduler so one command comes in at a time.
Please help Thank yOu
Aha good one looking for an example obv i know what fifo is
Need a standard fifo algorithm
A std::queue would be a good abstraction to look into. I'm not sure how it's actually done, but you could probably look into dissecting the one that the Linux kernel uses.
If its a cpu scheduler performance is probably important
which implies perhaps a ring-buffer type structure might be useful
Can you describe in more detail what you are trying to do?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.