What is the code for round robin in visual basic 6.0
That's not a question easily answered in the sense of a "language" (like VB, C or otherwise).
Round-Robin is actually a term for sharing a "time-slice"...
Meaning.. lets say there are 3 parties... each want 70% utilization of the processor (or time)... But.. obviously... 100% is all you have.
So.. How do you "fairly" share the time? There's a couple of ways, round-robin (for interrupts for example on x86 based processors) is a method.
What it means is-- regardless of how much time you want, or need.. the kernel (Operating system) will give you so long to get "whatever you are doing"...Done.
If you don't get it done in time... the next guy gets to do his job..for a similar amount of time... and the next guy.. and then..say-- back to you.
Hence..Round-Robin.. we all get a slice, and if we don't get it done in-time... next time around we'll another slice to get more work done... maybe the other 1 or 2 or N guys... are done, and we'll get move time..maybe others have joined in, and we'll get less-- its to-be-determinned at run-time...
That's not a code answer... I know.. but the question was a little abstract, if you can be more specific (code wise), I may be able to give more of an example..but for now, explaining WHAT it is may be more useful.
Oct 19, 2012 |
Microsoft Visual Basic 6.0 (361-00686) for...