{"id":4219,"date":"2014-03-30T09:24:20","date_gmt":"2014-03-30T09:24:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/new-and-delete-handles-multithreading-issues-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:24:20","modified_gmt":"2014-03-30T09:24:20","slug":"new-and-delete-handles-multithreading-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/new-and-delete-handles-multithreading-issues-collection-of-common-programming-errors\/","title":{"rendered":"new and delete handles multithreading issues-Collection of common programming errors"},"content":{"rendered":"<p>I am reading a book Efficient C++: Performance Programming Techniques Authors is saying following regarding global new and delete operators:<\/p>\n<blockquote>\n<p>They manage memory in the process context, and since a process may spawn multiple threads, <code>new()<\/code> and <code>delete()<\/code> must be able to operate in a multithreaded environment. In addition, the size of memory requests may vary from one request to the next.<\/p>\n<\/blockquote>\n<p>in <em>Chapter 6. Single-Threaded Memory Pooling<\/em>.<\/p>\n<p>Is this true? I thought C++ does not have a notion of a <em>Multi-threading environment<\/em>, programmer need to handle is by using some means of mutual exclusion.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am reading a book Efficient C++: Performance Programming Techniques Authors is saying following regarding global new and delete operators: They manage memory in the process context, and since a process may spawn multiple threads, new() and delete() must be able to operate in a multithreaded environment. In addition, the size of memory requests may [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4219","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4219"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4219\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}