{"id":1197087,"date":"2023-10-27T11:31:32","date_gmt":"2023-10-27T15:31:32","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=1197087"},"modified":"2023-10-27T11:31:32","modified_gmt":"2023-10-27T15:31:32","slug":"deferred-scheduling-for-user-space-critical-sections","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=1197087","title":{"rendered":"[$] Deferred scheduling for user-space critical sections"},"content":{"rendered":"<p>User-space developers working with highly threaded applications would often<br \/>\nlike to be able to use spinlocks to protect shared data structures from<br \/>\nconcurrent access.  There is a fundamental problem with user-space<br \/>\nspinlocks, though: there is no way to prevent a thread from being<br \/>\npreempted.  Various ways of working around this problem have been explored,<br \/>\nbut <a href=\"https:\/\/lwn.net\/ml\/linux-kernel\/20231025235413.597287e1@gandalf.local.home\/\">this<br \/>\npatch<\/a> from Steven Rostedt questions the premise on which much of that<br \/>\nwork is based: what if it <i>were<\/i> possible to prevent preemption, for a<br \/>\nshort period at least?&#013;<br \/>\n&#013;<br \/>\nSource: LWN.net &#8211; <a href=\"https:\/\/lwn.net\/Articles\/948870\/\" target=\"_blank\" rel=\"noopener\">[$] Deferred scheduling for user-space critical sections<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>User-space developers working with highly threaded applications would often like to be able to use spinlocks to protect shared data structures from concurrent access. There is a fundamental problem with user-space spinlocks, though: there is no way to prevent a &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=1197087\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[75],"class_list":["post-1197087","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1197087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1197087"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1197087\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1197087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1197087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1197087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}