D2 & Web-Framework

Dicebot public at dicebot.lv
Wed Jul 3 06:51:17 PDT 2013


On Wednesday, 3 July 2013 at 13:31:56 UTC, Adam D. Ruppe wrote:
> The process pool on Linux though was dead easy and worked 
> really well. I find it kinda interesting how threads in D seem 
> to emulate processes too, with TLS giving you a sort of 
> separate address space - just easier to get right as the 
> programmer I guess.

That is essentially what happens now in vibe.d when multiple 
worker threads are used - because all server stuff is stored in 
TLS, each worker thread operates completely independently, 
similar to separate processes but with a nice bonus of sharing 
data made easier in user code.

I was referring to the reason behind async models became so 
popular though - most efficient way to deal with processes and 
threads is to not use them for multitasking at all :)


More information about the Digitalmars-d mailing list