{"id":986565,"date":"2019-06-17T04:45:45","date_gmt":"2019-06-17T04:45:45","guid":{"rendered":"https:\/\/www.wacoca.com\/videos\/986565\/celebrity\/"},"modified":"2019-06-17T04:45:45","modified_gmt":"2019-06-17T04:45:45","slug":"std-threads-vs-tokio-runtime","status":"publish","type":"post","link":"https:\/\/www.wacoca.com\/videos\/986565\/celebrity\/","title":{"rendered":"std threads vs tokio Runtime"},"content":{"rendered":"<p><iframe loading=\"lazy\"  width=\"580\" height=\"385\" src=\"https:\/\/www.youtube.com\/embed\/2WXNY1ppTzY?modestbranding=1\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>\n<br \/>\nIn Rust code, two ways to run concurrent tasks are spawning threads using the standard library, and using the tokio crate for async I\/O. In this video I make a test program with 100 tasks that take different amounts of time and compare how threads are utilised with each approach.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Rust code, two ways to run concurrent tasks are spawning threads using the standard library, and using the <\/p>\n","protected":false},"author":3,"featured_media":986566,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[21045],"tags":[21047,21046,87850,279014,754511,592811,754509,754510,21657,22],"class_list":{"0":"post-986565","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-celebrity","8":"tag-celebrities","9":"tag-celebrity","10":"tag-code","11":"tag-programming","12":"tag-runtime","13":"tag-rust","14":"tag-std","15":"tag-threads","16":"tag-tokio","17":"tag-vlog"},"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/posts\/986565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/comments?post=986565"}],"version-history":[{"count":0,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/posts\/986565\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/media\/986566"}],"wp:attachment":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/media?parent=986565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/categories?post=986565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/tags?post=986565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}