please help me.. i want to know how to make a cpu scheduling system using visual basic 6.0 .. hope you can help me..
thanks and advance happy new year to all..
cpu scheduling system
Started by robert00, Dec 30 2008 04:02 AM
9 replies to this topic
#1
Posted 30 December 2008 - 04:02 AM
|
|
|
#2
Posted 03 January 2009 - 05:15 PM
Why are you using Visual Basic for this? VB is ill-suited to low-level stuff, especially OS work. Your scheduling system depends on a few things:
1)What operating system
2)What computer system (i.e. IBM-compatible, some weird thing, etc.)
3)How many processors are on the system
4)What scheduling algorithm you want to use
Algorithm Types
Preemptive: The OS interrupts a process before it's finished executing to give another one execution time.
Non-preemptive: A process executes until it finishes, at which time another process is given the CPU.
Scheduling Algorithms
Round-Robin: (Preemptive) Each process on the CPU gets a predetermined time slice (usually on the order of a dozen or so milliseconds), and the scheduler just loops through a list of threads endlessly. Most modern OSes use something like this.
First-In-First-Out: (Non-preemptive) Basically like a line at a checkout counter.
Priority-Based: (Either, can be combined with Round-Robin or FIFO) Processes are executed in order of priority, determined somehow. For example, system processes are typically at a higher priority than user programs.
Shortest First: (Non-preemptive) The job that will take the shortest amount of time to complete will be executed first. This isn't used much anymore.
Multi-Level Feedback Queue: Multiple priority levels, each with it's own scheduling algorithm, time quantum, etc.
Seriously, unless you're just doing a simulator, this is waaay beyond VB.
1)What operating system
2)What computer system (i.e. IBM-compatible, some weird thing, etc.)
3)How many processors are on the system
4)What scheduling algorithm you want to use
Algorithm Types
Preemptive: The OS interrupts a process before it's finished executing to give another one execution time.
Non-preemptive: A process executes until it finishes, at which time another process is given the CPU.
Scheduling Algorithms
Round-Robin: (Preemptive) Each process on the CPU gets a predetermined time slice (usually on the order of a dozen or so milliseconds), and the scheduler just loops through a list of threads endlessly. Most modern OSes use something like this.
First-In-First-Out: (Non-preemptive) Basically like a line at a checkout counter.
Priority-Based: (Either, can be combined with Round-Robin or FIFO) Processes are executed in order of priority, determined somehow. For example, system processes are typically at a higher priority than user programs.
Shortest First: (Non-preemptive) The job that will take the shortest amount of time to complete will be executed first. This isn't used much anymore.
Multi-Level Feedback Queue: Multiple priority levels, each with it's own scheduling algorithm, time quantum, etc.
Seriously, unless you're just doing a simulator, this is waaay beyond VB.
#3
Posted 04 January 2009 - 04:38 AM
Ok! Thank You so much...
#4
Posted 27 February 2009 - 01:35 PM
Hey Guys.. I Need Some Help Here !!!
does any one know The Code ( by any language! ) for each of the types of cpu schedualing algorithm types!?!? ... if u know them please let me know ... and im hurry to get this codes...
i mean the code that works like the algorithm type !! Thank You ... :001_unsure:
does any one know The Code ( by any language! ) for each of the types of cpu schedualing algorithm types!?!? ... if u know them please let me know ... and im hurry to get this codes...
i mean the code that works like the algorithm type !! Thank You ... :001_unsure:
#5
Posted 27 February 2009 - 01:38 PM
What kind of CPU scheduling algorithm? Priority-based or round-robin? FIFO, LIFO, fastest job first? We need more info here. And why doesn't the language matter?
C++ CPU scheduling algorithm demo
C++ CPU scheduling algorithm demo
#6
Posted 27 February 2009 - 01:49 PM
i want seven of them ( FCFS, SJF, Priority, Preemptive, RR, Multi level Queue, Multi level feed back Queues ) and for the language! i just need the idea! if it written like:
Begin
get queue
get x job in queue...etc
End
i will understand wots going on ... then i need the idea! dats y ... thank u for help
Begin
get queue
get x job in queue...etc
End
i will understand wots going on ... then i need the idea! dats y ... thank u for help
#7
Posted 27 February 2009 - 01:52 PM
This reeks of homework. I suggest you do the reading you've been assigned, Aram.
Scheduling Algorithms (basic intro)
CPU Scheduling - Wikipedia (this has a ton of detailed algorithm descriptions)
Scheduling Algorithms (basic intro)
CPU Scheduling - Wikipedia (this has a ton of detailed algorithm descriptions)
#8
Posted 27 February 2009 - 01:57 PM
hahaha ... yes u r r8 ... its for a homework ...
many thx for ur help! and dont worry im best of my class :rolleyes:
btw i suprise when i saw ur age!!?! WD 2 u ... thx again
many thx for ur help! and dont worry im best of my class :rolleyes:
btw i suprise when i saw ur age!!?! WD 2 u ... thx again
#9
Posted 07 March 2009 - 03:15 PM
nice work
#10
Posted 07 March 2009 - 03:43 PM
You're welcome.


Sign In
Create Account

Back to top









