[OSy] Fibers in Windows NT

Premysl Paska premek.paska at gmail.com
Wed Nov 9 22:46:37 CET 2005


Dobry den,

na prednasce jsem vznesl dotaz na vlakenka (fibers) ve Windows.
Vlastne ani nevim, jestli me to opravdu tak zajimalo, nebo jsem chtel jen
ukazat, ze neco takoveho vubec znam ;-). Tak jsem se pokusil usetrit
prednasejicimu praci a neco jsem o tom nasel.

Vygooglil jsem clanek,
http://www.usenix.org/publications/library/proceedings/usenix-nt98/full_papers/zabatta/zabatta_html/zabatta.html,<http://www.usenix.org/publications/library/proceedings/usenix-nt98/full_papers/zabatta/zabatta_html/zabatta.html>
kde je v sekci 2.1 popsano, o co jde:

A *fiber* is NT's smallest user-level object of execution. It executes in
the context of a thread and is unknown to the operating system kernel. A
thread can consist of one or more fibers as determined by the application
programmer. Some literature
[1<http://www.usenix.org/publications/library/proceedings/usenix-nt98/full_papers/zabatta/zabatta_html/zabatta.html#%5B1%5D>
,11<http://www.usenix.org/publications/library/proceedings/usenix-nt98/full_papers/zabatta/zabatta_html/zabatta.html#%5B11%5D>]
assume that there is a one-to-one mapping of user-level objects to
kernel-level objects, this is inaccurate. Windows NT does provide the means
for many-to-many scheduling. However, NT's design is poorly documented and
the application programmer is responsible for the control of fibers such as
allocating memory, scheduling them on threads and preemption. This is
different from Solaris's implementation, as we shall see in the next
section. See [7<http://www.usenix.org/publications/library/proceedings/usenix-nt98/full_papers/zabatta/zabatta_html/zabatta.html#%5B7%5D>,
10<http://www.usenix.org/publications/library/proceedings/usenix-nt98/full_papers/zabatta/zabatta_html/zabatta.html#%5B10%5D>]
for more details on fibers. An illustrative example of NT's design is shown
in Figure 2<http://www.usenix.org/publications/library/proceedings/usenix-nt98/full_papers/zabatta/zabatta_html/zabatta.html#Figure%202>
.

Tedy presne to, co Petr Tuma hadal. :-)

Premek Paska
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20051109/50f47e87/attachment.html>


More information about the NSWI004 mailing list