{"id":184484,"date":"2004-05-24T00:00:00","date_gmt":"2009-10-31T13:48:30","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/msr-research-item\/exceptions-and-side-effects-in-atomic-blocks-2\/"},"modified":"2016-09-09T09:51:14","modified_gmt":"2016-09-09T16:51:14","slug":"exceptions-and-side-effects-in-atomic-blocks-2","status":"publish","type":"msr-video","link":"https:\/\/www.microsoft.com\/en-us\/research\/video\/exceptions-and-side-effects-in-atomic-blocks-2\/","title":{"rendered":"Exceptions and side-effects in atomic blocks"},"content":{"rendered":"<div class=\"asset-content\">\n<p>In recent work we&#8217;ve been looking at the design and implementation of a new &#8220;atomic&#8221; keyword as an extension to the Java programming language.  It allows programmers to perform a series of heap accesses atomically without needing to use mutual exclusion locks. In a paper at OOPSLA 2003 we showed that data structures built using it could perform well and scale to large multi-processor systems.<\/p>\n<p>In this talk I&#8217;ll present some initial thoughts on extending this design in two ways.  The first of these is how to provide an explicit &#8220;abort&#8221; operation to abandon execution of an atomic block and to automatically undo any updates made within it.  The second extension is to enable external I\/O to be performed within an atomic block.<\/p>\n<p>Both extensions are based on a single &#8220;external action&#8221; abstraction, allowing code running within an atomic block to request that a given pre-registered operation be executed outside the block.  Providing these features without opening a back-door to circumvent language-based security turned out to be a much more intricate problem than it first appeared.<\/p>\n<\/div>\n<p><!-- .asset-content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In recent work we&#8217;ve been looking at the design and implementation of a new &#8220;atomic&#8221; keyword as an extension to the Java programming language. It allows programmers to perform a series of heap accesses atomically without needing to use mutual exclusion locks. In a paper at OOPSLA 2003 we showed that data structures built using [&hellip;]<\/p>\n","protected":false},"featured_media":289952,"template":"","meta":{"msr-url-field":"","msr-podcast-episode":"","msrModifiedDate":"","msrModifiedDateEnabled":false,"ep_exclude_from_search":false,"_classifai_error":"","msr_hide_image_in_river":0,"footnotes":""},"research-area":[],"msr-video-type":[],"msr-locale":[268875],"msr-post-option":[],"msr-session-type":[],"msr-impact-theme":[],"msr-pillar":[],"msr-episode":[],"msr-research-theme":[],"class_list":["post-184484","msr-video","type-msr-video","status-publish","has-post-thumbnail","hentry","msr-locale-en_us"],"msr_download_urls":"","msr_external_url":"https:\/\/youtu.be\/kpKl0Y4F5xs","msr_secondary_video_url":"","msr_video_file":"","_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video\/184484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/types\/msr-video"}],"version-history":[{"count":0,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video\/184484\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media\/289952"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media?parent=184484"}],"wp:term":[{"taxonomy":"msr-research-area","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/research-area?post=184484"},{"taxonomy":"msr-video-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video-type?post=184484"},{"taxonomy":"msr-locale","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-locale?post=184484"},{"taxonomy":"msr-post-option","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-post-option?post=184484"},{"taxonomy":"msr-session-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-session-type?post=184484"},{"taxonomy":"msr-impact-theme","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-impact-theme?post=184484"},{"taxonomy":"msr-pillar","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-pillar?post=184484"},{"taxonomy":"msr-episode","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-episode?post=184484"},{"taxonomy":"msr-research-theme","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-research-theme?post=184484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}