[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-697942-105":59,"doc-detail-697942-en":130,"doc-similar-697942":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","lock-free-and-practical-deques-and-doubly-linked-lists-using-single-word-compare-and-swap-1-chapter-7-introduction","Lock-Free and Practical Deques and Doubly Linked Lists using Single-Word Compare-And-Swap 1 - Chapter 7 - Introduction","","Presents an efficient, practical lock-free implementation of a concurrent deque that supports parallelism for disjoint accesses using atomic primitives available on modern computer systems. Prior lock-free deque algorithms are limited by unavailable primitives, incomplete operation sets, or lack of design for disjoint access parallelism. The approach is based on a general lock-free doubly linked list requiring only single-word compare-and-swap, supporting full-precision pointers and dynamic deque sizes. Empirical studies compare performance under varying concurrency and memory architecture.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/lock-free-and-practical-deques-and-doubly-linked-lists-using-single-word-compare-and-swap-1-chapter-7-introduction/697942/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/lock-free-and-practical-deques-and-doubly-linked-lists-using-single-word-compare-and-swap-1-chapter-7-introduction/697942.png","ImageObject",300,407,{"name":92,"@type":93},"Tirek","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-15","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the chapter address?","Question",{"text":112,"@type":113},"It addresses building a concurrent deque without locks, ensuring at least one operation always makes progress while supporting parallelism for disjoint accesses.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Which synchronization primitive does the algorithm rely on?",{"text":117,"@type":113},"It relies on atomic single-word compare-and-swap (CAS) operations, avoiding stronger primitives like double-word CAS that are not widely available.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the proposed approach support dynamic deque sizes?",{"text":121,"@type":113},"It allows pointers with full precision, which supports dynamic maximum deque sizes when combined with an appropriate lock-free dynamic memory handler.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},697942,1794446071,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":36,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},5909896572756,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Chapter 7  \nLock-Free and Practical Deques and Doubly Linked Lists using Single-Word Compare-And-Swap 1  \nHa˚kan Sundell, Philippas Tsigas  \nDepartment of Computing Science Chalmers Univ. of Technol. and Go¨teborg Univ.  \n412 96 Go¨teborg, Sweden  \nE-mail: {phs, [tsigas](tsigas}@cs.chalmers.se)[}](tsigas}@cs.chalmers.se)[@cs.chalmers.se](tsigas}@cs.chalmers.se)  \nAbstract  \nWe present an eﬃcient and practical lock-free implementation of a concurrent deque that supports parallelism for disjoint accesses and uses atomic primitives which are available in modern computer systems. Previously known lock-free algorithms of deques are either based on non-available atomic synchronization primitives, only implement a subset of the functionality, or are not designed for disjoint accesses. Our algorithm is based on a general lock-free doubly linked list, and only requires single-word compare-and-swap  \n1 This is a revided and extended version of the paper that appeared as a technical report [19] . A preliminary version of this paper was also submitted to PODC 2004 .  \n2 CHAPTER 7. LOCK-FREE DEQUE AND DOUBLY LINKED LIST atomic primitives. It also allows pointers with full precision, and thus supports dynamic deque sizes. We have performed an empirical study using full implementations of the most eﬃcient known algorithms of lock-free deques. For systems with low concurrency, the algorithm by Michael shows the best performance. However, as our algorithm is designed for disjoint accesses, it performs signiﬁcantly better on systems with high concurrency and non-uniform memory architecture. In addition, the proposed solution also implements a general doubly linked list, the ﬁrst lock-free implementation that only needs the single-word compare-and-swap atomic primitive.  \n7.1 Introduction  \nA deque (i.e. double-ended queue) is a fundamental data structure. For example, deques are often used for implementing the ready queue used for scheduling of tasks in operating systems. A deque supports four operations, the PushRight, the PopRight, the PushLeft, and the PopLeft operation. The abstract deﬁnition of a deque is a list of values, where the PushRight/PushLeft operation adds a new value to the right/left edge of the list. The PopRight/PopLeft operation correspondingly removes and returns the value on the right/left edge of the list.  \nTo ensure consistency of a shared data object in a concurrent environment, the most common method is mutual exclusion, i.e. some form of locking. Mutual exclusion degrades the system’s overall performance [17] as it causes blocking, i.e. other concurrent operations can not make any progress while the access to the shared resource is blocked by the lock. Mutual exclusion can also cause deadlocks, priority inversion and even starvation.  \nIn order to address these problems, researchers have proposed nonblocking algorithms for shared data objects. Non-blocking algorithms do not involve mutual exclusion, and therefore do not suﬀer from the problems that blocking could generate. Lock-free implementations are non-blocking and guarantee that regardless of the contention caused by concurrent operations and the interleaving of their sub-operations, always at least one operation will progress. However, there is a risk for starvation as the progress of some operations could cause some other operations to never ﬁnish. Waitfree [9] algorithms are lock-free and moreover they avoid starvation as well, as all operations are then guaranteed to ﬁnish in a limited number of their own steps. Recently, some researchers also include obstruction-free [11] implementations to the non-blocking set of implementations. These kinds of implementations are weaker than the lock-free ones and do not guarantee  \n7.1. INTRODUCTION 3  \nprogress of any concurrent operation.  \nThe implementation of a lock-based concurrent deque is a trivial task, and can preferably be constructed using either a doubly linked list or a cyclic array, protected by either a s","cbCaiuMZ7NF4AK1j","https://ap.wps.com/l/cbCaiuMZ7NF4AK1j","pdf",277241,"English","# Chapter 7. Lock-Free Deque and Doubly Linked List\n## 7.1 Introduction","[{\"question\":\"What problem does the chapter address?\",\"answer\":\"It addresses building a concurrent deque without locks, ensuring at least one operation always makes progress while supporting parallelism for disjoint accesses.\"},{\"question\":\"Which synchronization primitive does the algorithm rely on?\",\"answer\":\"It relies on atomic single-word compare-and-swap (CAS) operations, avoiding stronger primitives like double-word CAS that are not widely available.\"},{\"question\":\"How does the proposed approach support dynamic deque sizes?\",\"answer\":\"It allows pointers with full precision, which supports dynamic maximum deque sizes when combined with an appropriate lock-free dynamic memory handler.\"}]","Lock-Free and Practical Deques and Doubly Linked Lists using Single-Word Compare-And-Swap 1 - Chapter 7 - Introduction | PDF",101,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/a985f4dc750d5ea3470870d5a0675042.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/935f00f020192dd7f992ed839e148856.webp",982,1389,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/f66ee93a1ab780d1123d36117f134300.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b1375b5742710f3c88fb911377a2ac49.webp",980,1386,{"list":162,"token":66},[163,169,175,182,189,196,203,210,217,224],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":39,"category_name":30,"create_tm":168},692238,"The Go Programming Handbook - A Complete Guide to Building Production-Grade Applications in Golang","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003019020/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=Qq9HVGfeQPy7Wmw488V4S346Q8M%3D","the-go-programming-handbook-a-complete-guide-to-building-production-grade-applications-in-golang",1794186695,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":14,"category_name":30,"create_tm":174},735369,"On Concurrent Programming - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230034115385/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=IMKfu40H0k8Cs28hz%2F4BpyGvPhU%3D","on-concurrent-programming-table-of-contents",1795460533,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":180,"category_name":30,"create_tm":181},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=p9HRIKl5W7mXf8QMnEAGk5B4NOM%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",945,1785472614,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":30,"create_tm":188},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=HrFe5Wh5OeFAtRGz8K00FkaOm0g%3D","xnx-universal-transmitter-installation-manual",865,1776135954,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":30,"create_tm":195},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=UtVb6foBxXEM0bVfCEpVTAY%2FepI%3D","the-candlestick-trading-bible-trading-guide",819,1789767270,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":30,"create_tm":202},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=GclYw0WDFDNDcZTchBwdOGJhQF4%3D","free-fire-proxy-server",570,1776135932,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":30,"create_tm":209},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=PgO23JOJ%2FCAy4ieiGNVvt37qp4M%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",500,1786012506,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":30,"create_tm":216},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=G2XyMm%2BIECjj%2Be4j0TmpRhMuH7I%3D","tiktok-content-tricks-from-0-to-fyp",493,1776338393,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":30,"create_tm":223},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=R6j7vVnqaLj6N535fzJ2wLmGJcI%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",462,1790287169,{"doc_id":225,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":30,"create_tm":230},238737,"Spectrum Channel List 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229894154298/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796214899&Signature=9xY%2FlJ%2BtYDyreg2Ea7SFdvqF%2BbQ%3D","spectrum-channel-list-2026",452,1789139284]