当前位置:网站首页>Haskell lightweight threads overhead and use on multicores
Haskell lightweight threads overhead and use on multicores
2022-07-01 04:15:00 【Technology feast】
problem :
I've been reading the "Real World Haskell" book, the chapter on concurrency and parallelism. I've been reading “ real world Haskell” A Book , Chapter on concurrency and parallelism .My question is as follows: My question is as follows :
Since Haskell threads are really just multiple "virtual" threads inside one "real" OS-thread, does this mean that creating a lot of them (like 1000) will not have a drastic impact on performance? because Haskell A thread is really just a “ real ”OS Multiple in thread “ fictitious ” Threads , Does this mean creating them ( Such as 1000) Will not have a significant impact on performance ?Ie, can we say that the overhead incurred from creating a Haskell thread with
forkIOis (almost) negligible? namely , We can say useforkIOestablish Haskell Is the overhead of threading almost negligible ?Please bring pactical examples if possible. If possible , Please bring typical examples .Doesn't the concept of lightweight threads prevent us from using the benefints of multicore architectures? Does the concept of lightweight threads prevent us from using the benefits of multi-core architecture ?As I understand, it is not possible for two Haskell threads to execute concurrently on two separate cores, because they are really one single thread from the operating system's point of view. as far as I am concerned , Two Haskell Threads cannot execute concurrently on two separate kernels , Because from the perspective of the operating system , They are actually a separate thread .Or does the Haskell runtime do some clever tricks to ensure that multiple CPU's can be made use of? perhaps Haskell Does the runtime do some clever tricks to ensure that multiple CPU?
Solution :
Reference resources : https://stackoom.com/en/question/OXEo边栏推荐
- 多次跳槽后,月薪等于老同事的年薪
- TASK04|數理統計
- [EI search] important information conference of the 6th International Conference on materials engineering and advanced manufacturing technology (meamt 2022) in 2022 website: www.meamt Org meeting time
- [TA frost wolf \u may- hundred talents plan] 1.2.2 matrix calculation
- [EI conference] the Third International Conference on nanomaterials and nanotechnology in 2022 (nanomt 2022)
- 431. encode n-ary tree as binary tree DFS
- 嵌入式系統開發筆記80:應用Qt Designer進行主界面設計
- Visit the image URL stored by Alibaba cloud to preview the thumbnail directly on the web page instead of downloading it directly
- js 图片路径转换base64格式
- Analysis and case of pageobject mode
猜你喜欢

使用WinMTR软件简单分析跟踪检测网络路由情况

TASK04|数理统计

Programs and processes, process management, foreground and background processes
![[leetcode skimming] February summary (updating)](/img/62/0d0d9f11434e49d33754a2e4f2ea65.jpg)
[leetcode skimming] February summary (updating)
![[TA frost wolf \u may- hundred talents plan] 1.2.3 MVP matrix operation](/img/4e/8cf60bc816441967c04f97c64685a1.png)
[TA frost wolf \u may- hundred talents plan] 1.2.3 MVP matrix operation

Libevent Library Learning

Task04 | statistiques mathématiques

DO280管理应用部署--RC

【TA-霜狼_may-《百人计划》】1.2.2 矩阵计算

Volley parsing data shows networking failure
随机推荐
Qt开发经验小技巧226-230
Introduction of Spock unit test framework and its practice in meituan optimization___ Chapter I
Account sharing technology enables the farmers' market and reshapes the efficiency of transaction management services
Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
This may be your last chance to join Tencent
互联网行业最佳产品开发流程 推荐!
Jenkins自动清理构建历史
Analysis and case of pageobject mode
Task04 | statistiques mathématiques
MallBook:后疫情时代下,酒店企业如何破局?
Go learning --- unit test subtest
Usage of AfxMessageBox and MessageBox
HoloLens2开发环境搭建及部署app
采购数智化爆发在即,支出宝'3+2'体系助力企业打造核心竞争优势
JMeter learning notes 2 - brief introduction to graphical interface
Deep learning | rnn/lstm of naturallanguageprocessing
CF1638E colorful operations
跳槽一次涨8k,5年跳了3次...
[leetcode skimming] February summary (updating)
Spock单元测试框架介绍及在美团优选的实践___第一章