Structured concurrency (original) (raw)

Property Value
dbo:abstract Structured concurrency is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by using a structured approach to concurrent programming. The core concept is the encapsulation of concurrent threads of execution (here encompassing kernel and userland threads and processes) by way of control flow constructs that have clear entry and exit points and that ensure all spawned threads have completed before exit. Such encapsulation allows errors in concurrent threads to be propagated to the control structure's parent scope and managed by the native error handling mechanisms of each particular computer language. It allows control flow to remain readily evident by the structure of the source code despite the presence of concurrency. To be effective, this model must be applied consistently throughout all levels of the program – otherwise concurrent threads may leak out, become orphaned, or fail to have runtime errors correctly propagated. Structured concurrency is analogous to structured programming, which introduced control flow constructs that encapsulated sequential statements and subroutines. (en) 構造化された並行性(こうぞうかされたへいこうせい、英: structured concurrency)は、プログラミング言語における並行処理、のAPIのパラダイムのひとつで、呼び出した非同期処理ルーチンが完了するまで呼び出し元の特定のブロックが完了しないことを保証することをいう。構造化された並行性の「構造化」(structured) の名は、1960年代に提唱されたプログラミング手法である構造化プログラミング (structured programming) を引き継いでいる。構造化された並行性は、非同期処理の開始と終了が明確に入れ子になることが非同期処理の構造化へのアプローチとなるとみなし、このことが明快さのみならずエラー処理などにおいて従来の手法より有利な点をもつとする。 (ja)
dbo:wikiPageExternalLink https://trio.discourse.group/c/structured-concurrency https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/ https://archive.fosdem.org/2019/schedule/event/structured_concurrency/
dbo:wikiPageID 61416668 (xsd:integer)
dbo:wikiPageLength 5691 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID 1111891881 (xsd:integer)
dbo:wikiPageWikiLink dbr:Programming_paradigm dbr:Python_(programming_language) dbr:Concurrent_computing dbr:Go_(programming_language) dbr:Coroutine dbr:Structured_programming dbr:Computer_program dbr:ZeroMQ dbc:Concurrent_computing dbr:Fork–join_model dbr:Java_(programming_language) dbc:Programming_paradigms dbr:Swift_(programming_language) dbr:Kotlin_(programming_language) dbr:OpenMP
dbp:wikiPageUsesTemplate dbt:Programming_paradigms dbt:Reflist
dct:subject dbc:Concurrent_computing dbc:Programming_paradigms
rdfs:comment 構造化された並行性(こうぞうかされたへいこうせい、英: structured concurrency)は、プログラミング言語における並行処理、のAPIのパラダイムのひとつで、呼び出した非同期処理ルーチンが完了するまで呼び出し元の特定のブロックが完了しないことを保証することをいう。構造化された並行性の「構造化」(structured) の名は、1960年代に提唱されたプログラミング手法である構造化プログラミング (structured programming) を引き継いでいる。構造化された並行性は、非同期処理の開始と終了が明確に入れ子になることが非同期処理の構造化へのアプローチとなるとみなし、このことが明快さのみならずエラー処理などにおいて従来の手法より有利な点をもつとする。 (ja) Structured concurrency is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by using a structured approach to concurrent programming. The core concept is the encapsulation of concurrent threads of execution (here encompassing kernel and userland threads and processes) by way of control flow constructs that have clear entry and exit points and that ensure all spawned threads have completed before exit. Such encapsulation allows errors in concurrent threads to be propagated to the control structure's parent scope and managed by the native error handling mechanisms of each particular computer language. It allows control flow to remain readily evident by the structure of the source code despite the presence of concurrency. To be effectiv (en)
rdfs:label 構造化された並行性 (ja) Structured concurrency (en)
owl:sameAs wikidata:Structured concurrency dbpedia-ja:Structured concurrency https://global.dbpedia.org/id/BwT6S
prov:wasDerivedFrom wikipedia-en:Structured_concurrency?oldid=1111891881&ns=0
foaf:isPrimaryTopicOf wikipedia-en:Structured_concurrency
is dbo:wikiPageWikiLink of dbr:Concurrent_computing dbr:Concurrency_(computer_science) dbr:Choreographic_programming dbr:Structured_programming
is foaf:primaryTopic of wikipedia-en:Structured_concurrency