Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

LoseThos

Name: Anonymous 2011-09-28 8:03

http://forum.osdev.org/viewtopic.php?f=15&t=24190

In LoseThos, core 0 is master and the rest are slaves.  Also, LoseThos is for single-user home systems, not multiuser mainframes or servers. 

It is multitasking, but, for example, does not break 100 block disk reads into pieces, so drive is locked and other tasks waiting on drive starve.  I plan to keep it that way -- it's simpler.

I turn interrupts off during some parts of code AND employ a spin lock.  Conceptually, turning-off interrupts instantly gives you mutex... exclusion from other tasks (on that core).  For multicore, you need to go beyond, so I employ separate spin locks for everything.  Technically, a spin lock alone is good enough without turning-off interrutps, but, I donno, just because I think it's more efficient, I turn-off interrupts, too.  In almost all cases, applications are single core and run on core 0, so CLI provides no-waste solutions to mutual exclusion.  My spin locks Yield CPU on failure, which is unacceptible for large-number-of-tasks systems.  Go use Linux if you want that.  If you want simpler, use LoseThos.

Name: Anonymous 2011-09-29 5:08

>>57
I get painted into news stories, like the Troy Davis execution.

Psychologists and angels know what related thoughts will pop into your head on seeing a word.  Sometimes I think about chess games where I get bounced like a pin ball.

God says...
C:\TEXT\Brief\AUGUST.TXT

es of the world to come, which
my mother reposed in Thee; but the hope of learning, which both my
parents were too desirous I should attain; my father, because he had
next to no thought of Thee, and of me but vain conceits; my mother,
because she accounted that those usual courses of learning would not
only be no hindrance, but even some furtherance towards attaining
Thee.  For thus I conjecture, recalling, as well as I may, the
disposition of my parents.  The reins, meantime, were slackened to
me,

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List