Critical area locking method, device, terminal, and storage medium

The embodiment of the invention discloses a critical area locking method, a device, a terminal and a storage medium. The method comprises the following steps: if receiving an access instruction of anythread in a critical region to a common resource, obtaining a current value of a lock state paramete...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HE WEI, NI ZHONGJUN, CHEN ZHUO, BAO WANYU, FENG KAIWEN, DANG YUEDONG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator HE WEI
NI ZHONGJUN
CHEN ZHUO
BAO WANYU
FENG KAIWEN
DANG YUEDONG
description The embodiment of the invention discloses a critical area locking method, a device, a terminal and a storage medium. The method comprises the following steps: if receiving an access instruction of anythread in a critical region to a common resource, obtaining a current value of a lock state parameter of the critical region; comparing whether the current value of the lock state parameter is equalto the initial value of the lock state parameter by an atomic operation mode; adjusting the value of the lock state parameter according to the comparison result; responding to the access instruction according to the comparison result; and controlling the locking state of the critical region. By adopting the technical proposal of the invention, the system performance can be improved while maintaining the consistency of the common resource data of the critical region. 本发明实施例公开了种临界区加锁方法、装置、终端及存储介质。该方法包括:若接收到临界区中任线程对共有资源的访问指令,则获取临界区的锁状态参数的当前取值;通过原子操作方式执行比较所述锁状态参数的当前取值与所述锁状态参数的初始值是否相等,以及依据比较结果调整所述锁状态参数的取值,并依据比较结果响应所述访问指令以及控
format Patent
fullrecord <record><control><sourceid>epo_EVB</sourceid><recordid>TN_cdi_epo_espacenet_CN109271260A</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>CN109271260A</sourcerecordid><originalsourceid>FETCH-epo_espacenet_CN109271260A3</originalsourceid><addsrcrecordid>eNqNyr0KwjAUBtAsDqK-w3WP0FZQHDUoTk7u5ZJ8thfzU5Lo8-vgAzid5czVyWSpYtkTZzD5ZJ8SBwqoY3KaHN5ioakiB4nsNXF0VGrKPOC7nLzCUs0e7AtWPxdqfTnfzXWDKfUoE1tE1N7c2ubQ7dtu1xy3_5wP5IIxRg</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>patent</recordtype></control><display><type>patent</type><title>Critical area locking method, device, terminal, and storage medium</title><source>esp@cenet</source><creator>HE WEI ; NI ZHONGJUN ; CHEN ZHUO ; BAO WANYU ; FENG KAIWEN ; DANG YUEDONG</creator><creatorcontrib>HE WEI ; NI ZHONGJUN ; CHEN ZHUO ; BAO WANYU ; FENG KAIWEN ; DANG YUEDONG</creatorcontrib><description>The embodiment of the invention discloses a critical area locking method, a device, a terminal and a storage medium. The method comprises the following steps: if receiving an access instruction of anythread in a critical region to a common resource, obtaining a current value of a lock state parameter of the critical region; comparing whether the current value of the lock state parameter is equalto the initial value of the lock state parameter by an atomic operation mode; adjusting the value of the lock state parameter according to the comparison result; responding to the access instruction according to the comparison result; and controlling the locking state of the critical region. By adopting the technical proposal of the invention, the system performance can be improved while maintaining the consistency of the common resource data of the critical region. 本发明实施例公开了种临界区加锁方法、装置、终端及存储介质。该方法包括:若接收到临界区中任线程对共有资源的访问指令,则获取临界区的锁状态参数的当前取值;通过原子操作方式执行比较所述锁状态参数的当前取值与所述锁状态参数的初始值是否相等,以及依据比较结果调整所述锁状态参数的取值,并依据比较结果响应所述访问指令以及控</description><language>chi ; eng</language><subject>CALCULATING ; COMPUTING ; COUNTING ; ELECTRIC DIGITAL DATA PROCESSING ; PHYSICS</subject><creationdate>2019</creationdate><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://worldwide.espacenet.com/publicationDetails/biblio?FT=D&amp;date=20190125&amp;DB=EPODOC&amp;CC=CN&amp;NR=109271260A$$EHTML$$P50$$Gepo$$Hfree_for_read</linktohtml><link.rule.ids>230,308,776,881,25542,76290</link.rule.ids><linktorsrc>$$Uhttps://worldwide.espacenet.com/publicationDetails/biblio?FT=D&amp;date=20190125&amp;DB=EPODOC&amp;CC=CN&amp;NR=109271260A$$EView_record_in_European_Patent_Office$$FView_record_in_$$GEuropean_Patent_Office$$Hfree_for_read</linktorsrc></links><search><creatorcontrib>HE WEI</creatorcontrib><creatorcontrib>NI ZHONGJUN</creatorcontrib><creatorcontrib>CHEN ZHUO</creatorcontrib><creatorcontrib>BAO WANYU</creatorcontrib><creatorcontrib>FENG KAIWEN</creatorcontrib><creatorcontrib>DANG YUEDONG</creatorcontrib><title>Critical area locking method, device, terminal, and storage medium</title><description>The embodiment of the invention discloses a critical area locking method, a device, a terminal and a storage medium. The method comprises the following steps: if receiving an access instruction of anythread in a critical region to a common resource, obtaining a current value of a lock state parameter of the critical region; comparing whether the current value of the lock state parameter is equalto the initial value of the lock state parameter by an atomic operation mode; adjusting the value of the lock state parameter according to the comparison result; responding to the access instruction according to the comparison result; and controlling the locking state of the critical region. By adopting the technical proposal of the invention, the system performance can be improved while maintaining the consistency of the common resource data of the critical region. 本发明实施例公开了种临界区加锁方法、装置、终端及存储介质。该方法包括:若接收到临界区中任线程对共有资源的访问指令,则获取临界区的锁状态参数的当前取值;通过原子操作方式执行比较所述锁状态参数的当前取值与所述锁状态参数的初始值是否相等,以及依据比较结果调整所述锁状态参数的取值,并依据比较结果响应所述访问指令以及控</description><subject>CALCULATING</subject><subject>COMPUTING</subject><subject>COUNTING</subject><subject>ELECTRIC DIGITAL DATA PROCESSING</subject><subject>PHYSICS</subject><fulltext>true</fulltext><rsrctype>patent</rsrctype><creationdate>2019</creationdate><recordtype>patent</recordtype><sourceid>EVB</sourceid><recordid>eNqNyr0KwjAUBtAsDqK-w3WP0FZQHDUoTk7u5ZJ8thfzU5Lo8-vgAzid5czVyWSpYtkTZzD5ZJ8SBwqoY3KaHN5ioakiB4nsNXF0VGrKPOC7nLzCUs0e7AtWPxdqfTnfzXWDKfUoE1tE1N7c2ubQ7dtu1xy3_5wP5IIxRg</recordid><startdate>20190125</startdate><enddate>20190125</enddate><creator>HE WEI</creator><creator>NI ZHONGJUN</creator><creator>CHEN ZHUO</creator><creator>BAO WANYU</creator><creator>FENG KAIWEN</creator><creator>DANG YUEDONG</creator><scope>EVB</scope></search><sort><creationdate>20190125</creationdate><title>Critical area locking method, device, terminal, and storage medium</title><author>HE WEI ; NI ZHONGJUN ; CHEN ZHUO ; BAO WANYU ; FENG KAIWEN ; DANG YUEDONG</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-epo_espacenet_CN109271260A3</frbrgroupid><rsrctype>patents</rsrctype><prefilter>patents</prefilter><language>chi ; eng</language><creationdate>2019</creationdate><topic>CALCULATING</topic><topic>COMPUTING</topic><topic>COUNTING</topic><topic>ELECTRIC DIGITAL DATA PROCESSING</topic><topic>PHYSICS</topic><toplevel>online_resources</toplevel><creatorcontrib>HE WEI</creatorcontrib><creatorcontrib>NI ZHONGJUN</creatorcontrib><creatorcontrib>CHEN ZHUO</creatorcontrib><creatorcontrib>BAO WANYU</creatorcontrib><creatorcontrib>FENG KAIWEN</creatorcontrib><creatorcontrib>DANG YUEDONG</creatorcontrib><collection>esp@cenet</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>HE WEI</au><au>NI ZHONGJUN</au><au>CHEN ZHUO</au><au>BAO WANYU</au><au>FENG KAIWEN</au><au>DANG YUEDONG</au><format>patent</format><genre>patent</genre><ristype>GEN</ristype><title>Critical area locking method, device, terminal, and storage medium</title><date>2019-01-25</date><risdate>2019</risdate><abstract>The embodiment of the invention discloses a critical area locking method, a device, a terminal and a storage medium. The method comprises the following steps: if receiving an access instruction of anythread in a critical region to a common resource, obtaining a current value of a lock state parameter of the critical region; comparing whether the current value of the lock state parameter is equalto the initial value of the lock state parameter by an atomic operation mode; adjusting the value of the lock state parameter according to the comparison result; responding to the access instruction according to the comparison result; and controlling the locking state of the critical region. By adopting the technical proposal of the invention, the system performance can be improved while maintaining the consistency of the common resource data of the critical region. 本发明实施例公开了种临界区加锁方法、装置、终端及存储介质。该方法包括:若接收到临界区中任线程对共有资源的访问指令,则获取临界区的锁状态参数的当前取值;通过原子操作方式执行比较所述锁状态参数的当前取值与所述锁状态参数的初始值是否相等,以及依据比较结果调整所述锁状态参数的取值,并依据比较结果响应所述访问指令以及控</abstract><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier
ispartof
issn
language chi ; eng
recordid cdi_epo_espacenet_CN109271260A
source esp@cenet
subjects CALCULATING
COMPUTING
COUNTING
ELECTRIC DIGITAL DATA PROCESSING
PHYSICS
title Critical area locking method, device, terminal, and storage medium
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-31T13%3A05%3A19IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-epo_EVB&rft_val_fmt=info:ofi/fmt:kev:mtx:patent&rft.genre=patent&rft.au=HE%20WEI&rft.date=2019-01-25&rft_id=info:doi/&rft_dat=%3Cepo_EVB%3ECN109271260A%3C/epo_EVB%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true