flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > how does OS implement multithreading? |
Author |
|
f0dder 08 Jul 2008, 14:24
There's several thing included. One is the "thread context", which at the very least includes a copy of the CPU registers - but typically also a lot more than that (OS dependent stuff). Threads also usually have separate stacks.
To schedule threads for execution, you typically use a timer interrupt which does some bookkeeping and decides when to switch from one thread to another - there's various different algorithms you can use for this. Yes, that was pretty incomplete and generic - I suggest you to find a copy of "Inside Windows"/"Windows Internals", there's some decent description of how NT handles it. |
|||
08 Jul 2008, 14:24 |
|
tom tobias 08 Jul 2008, 14:56
m wrote:
another unix environment. http://technet.microsoft.com/en-us/library/bb497012(TechNet.10).aspx here's a power point presentation. |
|||
08 Jul 2008, 14:56 |
|
m 09 Jul 2008, 11:56
thanks tom for those links! exactly what i needed.
thanks a lot, although i can't thank you enough _________________ Attitude! |
|||
09 Jul 2008, 11:56 |
|
edfed 09 Jul 2008, 16:45
Quote:
very hard thing to do, but possible. threads have execution contexts. they are not tasks. no TSS. ESI for current, EDI for parent, and ESP for returns and temporary values. follow the fool principle, it will be exactlly like that. it is still ok, but cannot be called multithread because the system doesn't interrupt them to dispatch the work. |
|||
09 Jul 2008, 16:45 |
|
myothant 31 Oct 2008, 09:35
How to make simple Operating System
|
|||
31 Oct 2008, 09:35 |
|
DOS386 31 Oct 2008, 09:40
myothant wrote: How to make simple Operating System Please don't pollute threads, multithreading is not what you have to care about now, OS construction is the correct subforum, first look into some "bootsector" , "bootable Hello World" , "MiniDOS" or similar examples, and then open one new thread to ask. _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
31 Oct 2008, 09:40 |
|
asmcoder 02 Dec 2008, 19:52
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total |
|||
02 Dec 2008, 19:52 |
|
f0dder 03 Dec 2008, 00:03
asmcoder wrote: can you upload "Inside Windows"/"Windows Internals" plz? _________________ - carpe noctem |
|||
03 Dec 2008, 00:03 |
|
tom tobias 03 Dec 2008, 13:28
http://williamstallings.com/OS/OS5e.html
then, click on "student resources" to access a PDF file on Windows, if that is the operating system of interest to you. Alternatively, I suggest trying the Homework problems for Stalling's book. http://www.box.net/shared/5bllmdr10l Here is another EXCELLENT resource: http://en.wikibooks.org/wiki/Operating_System_Design |
|||
03 Dec 2008, 13:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.