tag:blogger.com,1999:blog-4401555280825766585.post1372751961762129202..comments2023-07-21T04:50:56.062-04:00Comments on Life of a Computer Scientist: Continuation passing style calling convention for a C-like languageLikai Liuhttp://www.blogger.com/profile/06372207357661600589noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4401555280825766585.post-91686850812478923532012-07-19T00:22:32.869-04:002012-07-19T00:22:32.869-04:00Another reason to avoid threads with stack is that...Another reason to avoid threads with stack is that stack allocation and deallocation are expensive memory mapping operations. The deallocation is especially costly because unmapping memory requires TLB shootdown, which incurs synchronization overhead. This can be partly remedied by using thread pool, but the problem with thread pool is that tuning the thread pool size becomes voodoo magic. It highly depends on the code the thread runs as well as the hardware.Likai Liuhttps://www.blogger.com/profile/06372207357661600589noreply@blogger.com