flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 13 Jul 2011, 15:41
Have any of you ever used them (or emulated them with Assembly)? Do you know of any program making use of them?
|
|||
![]() |
|
Enko 13 Jul 2011, 15:51
It's the first time a hear of them. Never used, never saw.
Seems like a Windows "exotic" api. |
|||
![]() |
|
TmX 13 Jul 2011, 15:53
http://en.wikipedia.org/wiki/Fiber_(computer_science)
|
|||
![]() |
|
r22 13 Jul 2011, 16:01
Fibers are an extra layer of abstraction/overhead on top of multi-threading.
http://msdn.microsoft.com/en-us/library/ms686919%28v=vs.85%29.aspx Since they are not optimal, there's no reason to use them in with ASM (assuming you use ASM for speed/size optimization). I've never seen them used, but I'd guess there's some cross-platform threading library that works POSIX *nix and WIN32, which makes use of the fibers api. |
|||
![]() |
|
dancho 13 Jul 2011, 19:48
I read about fibers first time in this book ( great one btw , recommend to read to all win developers )
http://www.amazon.com/Programming-Applications-Microsoft-Windows/dp/1572319968 Chapter 12 is about them ( not to much text ), with small example program in C++, though didnt used myself , so cant help you ... |
|||
![]() |
|
typedef 13 Jul 2011, 20:09
LocoDelAssembly wrote: Have any of you ever used them (or emulated them with Assembly)? Do you know of any program making use of them? http://msdn.microsoft.com/en-us/library/ms682661.aspx |
|||
![]() |
|
MazeGen 14 Jul 2011, 07:03
The Old New Thing has nice article(s) about fibers.
|
|||
![]() |
|
LocoDelAssembly 14 Jul 2011, 14:43
Thanks for your answers. I've just found something I didn't know about: User-Mode Scheduling. The minimum requirements are a little bit aggressive though... UMS is probably more heavier than fibers but at least you'll have far less problems with code assuming they run on actual separate threads and if you get blocked the system will call you back so you can pick a new UMS thread (with fibers you were forced to avoid this situation and perhaps it is not always feasible to do)
|
|||
![]() |
|
f0dder 14 Jul 2011, 18:45
Iirc MS SQL Server can run in some fiber mode, but other than that? Haven't bumped into software using fibers (that I know of, anyway).
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.