[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-735369-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-735369-en":130,"doc-similar-735369":259},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","on-concurrent-programming-table-of-contents","On Concurrent Programming - Table of Contents","","Permission is granted to copy, distribute, and/or modify the document under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license. The contents outline a structured guide to concurrent programming, introducing foundational concepts, synchronization mechanisms, locking and lock-free techniques, concurrent data structures, testing and debugging, and progress toward higher-level systems. It further covers specifications, a Harmony virtual machine, modules and grammar details, model checking support, and reference materials such as glossary and index.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/on-concurrent-programming-table-of-contents/735369/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/on-concurrent-programming-table-of-contents/735369.png","ImageObject",300,407,{"name":42,"@type":43},"Blitz","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-27","2026-11-23",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What topics does the book cover in concurrent programming?","Question",{"text":62,"@type":63},"The contents span foundational issues, critical sections, synchronization primitives, locking strategies, concurrent data structures, and higher-level distributed protocols such as Paxos and authentication.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Does the document include practical guidance for developing concurrent systems?",{"text":67,"@type":63},"Yes. It lists chapters on testing (checking behaviors) and debugging, along with conditional waiting topics like reader/writer locks and bounded buffers.",{"name":69,"@type":60,"acceptedAnswer":70},"What is the role of the Harmony virtual machine and language details?",{"text":71,"@type":63},"The outline dedicates sections to the Harmony virtual machine, Harmony language details (types, statements, grammar), modules, and how the system works, including compiler and model checker support.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},735369,1795460533,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":145,"preview_urls":146},24464137899374,"https://us-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Permission is granted to copy, distribute and/or modify this document under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) at [http://creativecommons.org/licenses/by-nc-sa/4.0](http://creativecommons.org/licenses/by-nc-sa/4.0) .  \nContents  \n1 On Concurrent Programming 9  \n2 Hello World! 13  \n3 The Problem of Concurrent Programming 19  \n4 The Harmony Virtual Machine 27  \n5 Critical Sections 34  \n6 Peterson’s Algorithm 41  \n7 Harmony Methods and Pointers 48  \n8 Specification 53  \n9 Spinlock 56  \n10 Lock Implementations 60  \n11 Concurrent Data Structures 68  \n12 Fine-Grained Locking 73  \n13 Testing: Checking Behaviors 77  \n14 Debugging 83  \n15 Conditional Waiting 89  \n15.1 Reader/Writer Locks .................................... 89  \n15.2 Bounded Buffer ....................................... 92  \n16 Split Binary Semaphores 96  \n17 Starvation 101  \n18 Monitors 104  \n19 Deadlock 113  \n20 Actors and Message Passing 120  \n21 Barrier Synchronization 123  \n22 Example: A Concurrent File Service 128  \n23 Interrupts 140  \n24 Non-Blocking Synchronization 147  \n25 Alternating Bit Protocol 150  \n26 Leader Election 154  \n27 Transactions and Two Phase Commit 157  \n28 Chain Replication 162  \n29 Working with Actions 168  \n30 Replicated Atomic Read/Write Register 172  \n31 Distributed Consensus 177  \n32 Paxos 184  \n33 Needham-Schroeder Authentication Protocol 188  \nBibliography 191  \nA Harmony Language Details 194  \nA.1 Value Types and Operators ................................ 194  \nA.2 Statements ......................................... 201  \nA.3 Harmony is not object-oriented .............................. 208  \nA.4 Constants, Global and Local Variables .......................... 209  \nA.5 Operator Precedence .................................... 209  \nA.6 Tuples, Lists, and Pattern Matching ........................... 210  \nA.7 Dynamic Allocation .................................... 211  \nA.8 Comments .......................................... 213  \nA.9 Type Checking ....................................... 213  \nB Modules 215  \nB.1 The action module .................................... 215  \nB.2 The alloc module ..................................... 216  \nB.3 The bag module ...................................... 216  \nB.4 The fork module ...................................... 216  \nB.5 The hoare module ..................................... 217  \nB.6 The list module ...................................... 217  \nB.7 The set module ...................................... 218  \nB.8 The synch module ..................................... 219  \nC The Harmony Virtual Machine 220  \nC.1 Machine Instructions .................................... 221  \nC.2 Addresses and Method Calls ................................ 223  \nC.3 Contexts and Threads ................................... 223  \nC.4 Formal Specification .................................... 224  \nD How Harmony Works 225  \nD.1 Compiler .......................................... 225  \nD.2 Model Checker ....................................... 226  \nD.3 Model Checker Output Analysis ............................. 227  \nE Simplified Grammar 229  \nF Directly checking linearizability 232  \nG Manual Pages 236  \nAcknowledgments 239  \nIndex 240  \nGlossary 242  \nList of Figures  \n2.1 [code/hello1.hny] Hello World! .............................. 13  \n2.2 [code/hello3.hny] Harmony program with two possible outputs ............ 14  \n2.3 [code/hello4.hny] Harmony program with an infinite number of possible outputs .. 14  \n2.4 Demonstrating Harmony methods and threads ..................... 15  \n2.5 [code/hello7.hny] Various interleavings of threads .................... 15  \n2.6 [code/hello8.hny] Making groups of operations atomic reduces interleaving ...... 16  \n2.7 [code/triangle.hny] Computing triangle numbers .................... 17  \n2.8 Running the code in Figure 2.7 .............................. 17  \n2.9 Running the code in Figure 2.7 for N = 100 ...","cbCaivixbaTZUO2y","https://ap.wps.com/l/cbCaivixbaTZUO2y","pdf",2134739,245,"English","# Contents\n## On Concurrent Programming\n## Hello World!\n## The Problem of Concurrent Programming\n## The Harmony Virtual Machine\n## Critical Sections\n## Peterson’s Algorithm\n## Harmony Methods and Pointers\n## Specification\n## Spinlock\n## Lock Implementations\n## Concurrent Data Structures\n## Fine-Grained Locking\n## Testing: Checking Behaviors\n## Debugging\n## Conditional Waiting\n## Reader/Writer Locks\n## Bounded Buffer\n## Split Binary Semaphores\n## Starvation\n## Monitors\n## Deadlock\n## Actors and Message Passing\n## Barrier Synchronization\n## Example: A Concurrent File Service\n## Interrupts\n## Non-Blocking Synchronization\n## Alternating Bit Protocol\n## Leader Election\n## Transactions and Two Phase Commit\n## Chain Replication\n## Working with Actions\n## Replicated Atomic Read/Write Register\n## Distributed Consensus\n## Paxos\n## Needham-Schroeder Authentication Protocol\n## Bibliography\n## Harmony Language Details\n## Modules\n## The Harmony Virtual Machine\n## How Harmony Works\n## Simplified Grammar\n## Directly checking linearizability\n## Manual Pages\n## Acknowledgments\n## Index\n## Glossary","[{\"question\":\"What topics does the book cover in concurrent programming?\",\"answer\":\"The contents span foundational issues, critical sections, synchronization primitives, locking strategies, concurrent data structures, and higher-level distributed protocols such as Paxos and authentication.\"},{\"question\":\"Does the document include practical guidance for developing concurrent systems?\",\"answer\":\"Yes. It lists chapters on testing (checking behaviors) and debugging, along with conditional waiting topics like reader/writer locks and bounded buffers.\"},{\"question\":\"What is the role of the Harmony virtual machine and language details?\",\"answer\":\"The outline dedicates sections to the Harmony virtual machine, Harmony language details (types, statements, grammar), modules, and how the system works, including compiler and model checker support.\"}]","On Concurrent Programming - Table of Contents | PDF",617,25,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240,245,250,255],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/8db6722626014e14f7109f501fc08fd0.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/6e998d21b629ed87f34f6ff80a6ef3d5.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/17474e8ed7c985b4a617d83f6b152537.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/e2269c2e195957b770e3e87ab28552b9.webp",980,1268,{"page_no":96,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/a026f528d4083406d30429f09fb57239.webp",979,1267,{"page_no":101,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/8ba7ee19eaf343380b598011878f049c.webp",978,1265,{"page_no":105,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/d7206ffcdaa1acc70b91a601f511fbeb.webp",977,1264,{"page_no":110,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/a3ee2e0878b3bb33572640fd5cdd7cc9.webp",976,1263,{"page_no":115,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/777ef8ae52a194ef882763e8c94babfc.webp",975,1261,{"page_no":123,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/451936f591e56f10a0d1c468cd3fb80c.webp",974,1260,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/ce99fc3ac1dd9a0a475b2e821dcd6fd0.webp",973,1259,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/bca592dbbf4abcdeb6c5c7047bb75fca.webp",972,1257,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/bf10b42b7876a19c1f2c412583fa4ec0.webp",971,1256,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/86e31cf90d4a4cb4b14f7442cc4a7bc7.webp",970,1255,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/c61f079ff961881c6d92d17eb3db41f5.webp",969,1254,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/e1ec845749b92b0ec81f10ccfc6aabfb.webp",968,1252,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/b5f2f5c1c667c52f7a4423e64d14e4bd.webp",967,1251,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/b49102956ed870366ab2beb65309645b.webp",966,1250,{"page_no":127,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/a100883b22bb55dcb5e945961c0e18bd.webp",965,1248,{"page_no":117,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/0e44aa0e63ae89789c75a66961259132.webp",964,1247,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/b731731f883b78434d7934b45dafe22e.webp",963,1246,{"page_no":241,"url":242,"width":243,"height":244},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/fbc0cc6adddfc706d7c3ac127be506ef.webp",962,1245,{"page_no":246,"url":247,"width":248,"height":249},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/7481444560ff8fe600ffbc2fc610b724.webp",961,1243,{"page_no":251,"url":252,"width":253,"height":254},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/971debc9eae5c77127a1211443285a98.webp",960,1242,{"page_no":145,"url":256,"width":257,"height":258},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/30c3beb3bfac84716c600bdd8a6ecafa.webp",959,1241,{"list":260,"token":11},[261,267,273,279,285,291,297,303,309,315],{"doc_id":262,"doc_title":263,"file_type":137,"home_preview_img_url":264,"slug":265,"view_count":33,"category_name":29,"create_tm":266},687673,"Desktop User Guide - by GNOME Documentation Project","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001263261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=HmMoEP42t%2FqrgxGtZWakHjyVH%2F4%3D","desktop-user-guide-by-gnome-documentation-project",1794084492,{"doc_id":268,"doc_title":269,"file_type":137,"home_preview_img_url":270,"slug":271,"view_count":105,"category_name":29,"create_tm":272},647617,"Combination Laptop Lock - Instruction Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229972326393/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=LL1SEPOY4qzxIcCrMD2WoXxJyo4%3D","combination-laptop-lock-instruction-guide",1792789565,{"doc_id":274,"doc_title":275,"file_type":137,"home_preview_img_url":276,"slug":277,"view_count":26,"category_name":29,"create_tm":278},735370,"Concurrent Programming - Concurrency Lectures Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230034115393/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=tKCeHjGXSvSSrZH0azwxDl9e%2F3w%3D","concurrent-programming-concurrency-lectures-outline",1795460537,{"doc_id":280,"doc_title":281,"file_type":137,"home_preview_img_url":282,"slug":283,"view_count":203,"category_name":29,"create_tm":284},497301,"SAP Adaptive Server Enterprise 16.0 SP03 - Performance and Tuning Guide - Locking and Concurrency Control","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229930546866/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=ImpDyW2OnPKoEGbgh1Zmt4woXCU%3D","sap-adaptive-server-enterprise-160-sp03-performance-and-tuning-guide-locking-and-concurrency-control",1790951519,{"doc_id":286,"doc_title":287,"file_type":137,"home_preview_img_url":288,"slug":289,"view_count":145,"category_name":29,"create_tm":290},297613,"LOJEL Lock Instructions - Dial Lock How to Use","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905742644/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=%2FXGlygToj80EyZNIlh3njjeddD0%3D","lojel-lock-instructions-dial-lock-how-to-use",1789746257,{"doc_id":292,"doc_title":293,"file_type":137,"home_preview_img_url":294,"slug":295,"view_count":30,"category_name":29,"create_tm":296},697942,"Lock-Free and Practical Deques and Doubly Linked Lists using Single-Word Compare-And-Swap 1 - Chapter 7 - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009212194/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=ciesxnfOvV784uEDoPFl8B9NhTI%3D","lock-free-and-practical-deques-and-doubly-linked-lists-using-single-word-compare-and-swap-1-chapter-7-introduction",1794446071,{"doc_id":298,"doc_title":299,"file_type":137,"home_preview_img_url":300,"slug":301,"view_count":123,"category_name":29,"create_tm":302},237721,"Introducing Precision TimeNet for a disaggregated time synchronization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229893854681/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=h2uRTrEc1aYIBk%2FzB4dZ860pwlI%3D","introducing-precision-timenet-for-a-disaggregated-time-synchronization",1789120720,{"doc_id":304,"doc_title":305,"file_type":137,"home_preview_img_url":306,"slug":307,"view_count":110,"category_name":29,"create_tm":308},696697,"OCPP 1.6 Quick Start Guide for MPLAB - Harmony v3 - Setup and Demo Application","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009773899/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=%2Br3fOCdkBrgxKcTc4wSghkfApM4%3D","ocpp-16-quick-start-guide-for-mplab-harmony-v3-setup-and-demo-application",1794434411,{"doc_id":310,"doc_title":311,"file_type":137,"home_preview_img_url":312,"slug":313,"view_count":246,"category_name":29,"create_tm":314},297616,"Biometric Lock - Instructions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905742646/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=8qJ4kYT8PizjzLQWeX9SPrSz0iI%3D","biometric-lock-instructions",1789746266,{"doc_id":316,"doc_title":317,"file_type":137,"home_preview_img_url":318,"slug":319,"view_count":26,"category_name":29,"create_tm":320},735368,"MPLAB Harmony System Service Libraries Help - System Service Overview - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230034345745/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=uQCGeyGuyPy%2FdCFZDl5JhvFHW8M%3D","mplab-harmony-system-service-libraries-help-system-service-overview-introduction",1795460531]