CN106227613B - Linux下“生产者-消费者”模型的改进方法 - Google Patents
Linux下“生产者-消费者”模型的改进方法 Download PDFInfo
- Publication number
- CN106227613B CN106227613B CN201610623007.8A CN201610623007A CN106227613B CN 106227613 B CN106227613 B CN 106227613B CN 201610623007 A CN201610623007 A CN 201610623007A CN 106227613 B CN106227613 B CN 106227613B
- Authority
- CN
- China
- Prior art keywords
- module
- producer
- buffer zone
- consumer
- deadlock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000007717 exclusion Effects 0.000 claims description 23
- 238000001514 detection method Methods 0.000 claims description 12
- 230000003139 buffering effect Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002618 waking effect Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001314 paroxysmal effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F9/524—Deadlock detection or avoidance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Multi Processors (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610623007.8A CN106227613B (zh) | 2016-08-02 | 2016-08-02 | Linux下“生产者-消费者”模型的改进方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610623007.8A CN106227613B (zh) | 2016-08-02 | 2016-08-02 | Linux下“生产者-消费者”模型的改进方法 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106227613A CN106227613A (zh) | 2016-12-14 |
CN106227613B true CN106227613B (zh) | 2019-03-15 |
Family
ID=57536305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610623007.8A Active CN106227613B (zh) | 2016-08-02 | 2016-08-02 | Linux下“生产者-消费者”模型的改进方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106227613B (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153579B (zh) * | 2017-04-21 | 2020-10-09 | 北京思特奇信息技术股份有限公司 | 一种进程间数据传递的方法和系统 |
CN109684186B (zh) * | 2018-12-27 | 2022-06-10 | 长安大学 | 一种非侵入式的网络化嵌入式系统评测装置及评测方法 |
CN111182019B (zh) * | 2019-08-08 | 2021-10-15 | 腾讯科技(深圳)有限公司 | 跨平台通信方法及装置、电子设备 |
CN111208985B (zh) * | 2020-04-21 | 2020-07-28 | 南京云信达科技有限公司 | 基于生产者消费者模型的数据处理方法、系统及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702231A (zh) * | 2008-11-06 | 2010-05-05 | 威盛电子股份有限公司 | 绘图处理单元同步系统与方法 |
CN101861568A (zh) * | 2007-09-17 | 2010-10-13 | 通用电气公司 | 用于交换数据的方法和系统 |
US8893134B2 (en) * | 2011-04-13 | 2014-11-18 | International Business Machines Corporation | Locating bottleneck threads in multi-thread applications |
CN104636182A (zh) * | 2013-11-06 | 2015-05-20 | 国际商业机器公司 | 一种操作数据处理系统的方法、数据处理系统和处理器 |
-
2016
- 2016-08-02 CN CN201610623007.8A patent/CN106227613B/zh active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101861568A (zh) * | 2007-09-17 | 2010-10-13 | 通用电气公司 | 用于交换数据的方法和系统 |
JP5469066B2 (ja) * | 2007-09-17 | 2014-04-09 | ゼネラル・エレクトリック・カンパニイ | データを交換する方法及びシステム |
CN101702231A (zh) * | 2008-11-06 | 2010-05-05 | 威盛电子股份有限公司 | 绘图处理单元同步系统与方法 |
US8893134B2 (en) * | 2011-04-13 | 2014-11-18 | International Business Machines Corporation | Locating bottleneck threads in multi-thread applications |
CN104636182A (zh) * | 2013-11-06 | 2015-05-20 | 国际商业机器公司 | 一种操作数据处理系统的方法、数据处理系统和处理器 |
Also Published As
Publication number | Publication date |
---|---|
CN106227613A (zh) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106227613B (zh) | Linux下“生产者-消费者”模型的改进方法 | |
CN101877120B (zh) | 支持多个绘图处理器的互动的方法与系统 | |
Chen et al. | Quantum discord of two-qubit X states | |
CN103412634B (zh) | 一种soc芯片的mcu唤醒装置和方法 | |
US7529956B2 (en) | Granular reduction in power consumption | |
CN100527111C (zh) | 一种片上dma电路及其实现方法 | |
CN101702231A (zh) | 绘图处理单元同步系统与方法 | |
CN103765343B (zh) | 用于连接待机的进程的挂起和/或节制 | |
CN101261591A (zh) | 多核dsp系统中自适应的任务调度方法 | |
US8195975B2 (en) | Semiconductor integrated circuit device and clock control method | |
CN103645794A (zh) | 一种通过边沿检测电路实现睡眠模式唤醒的芯片及方法 | |
CN106575221A (zh) | 用于simd执行引擎的非结构化控制流的方法和设备 | |
CN107566296B (zh) | 接口设备和接口方法 | |
CN102063749A (zh) | 具有省电功能的安全监控系统及其省电方法 | |
CN105404555A (zh) | 医疗多线程共享资源分配处理方法及系统 | |
CN101083704A (zh) | 图像形成处理电路和图像形成设备 | |
US5428756A (en) | Pipelined computer with control of instruction advance | |
CN104133805A (zh) | Atp车载设备中的数据同步方法与装置 | |
CN106528092A (zh) | 系统唤醒方法及装置 | |
CN106656817A (zh) | 降低tcam由读写引起查找冲突的方法 | |
CN114363478B (zh) | 信号处理单元、方法、加速单元、电子设备和片上系统 | |
CN111327933A (zh) | 设备唤醒方法、装置和电子设备 | |
CN108303914A (zh) | 一种多dsp嵌入式计算机系统的同步方法 | |
CN117008538A (zh) | Pc机+i/o接口数控系统g指令和开关量指令协同方法及装置 | |
CN105430409A (zh) | 一种基于计数器的流水控制方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 400037 moonlight village 7-12, new street, Dadukou District, Chongqing Applicant after: Qin Long Address before: 400037 No. 139 Fengtian Avenue, Shapingba District, Chongqing, 2, 17-4 Applicant before: Qin Long |
|
CB02 | Change of applicant information | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190130 Address after: 400084 Yueguangcun 7-12, New Street, Dadukou District, Chongqing Applicant after: Chongqing Gui Fei Technology Co.,Ltd. Address before: 400037 moonlight village 7-12, new street, Dadukou District, Chongqing Applicant before: Qin Long |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: An Improved Method for the Producer Consumer Model in Linux Granted publication date: 20190315 Pledgee: Chongqing Rural Commercial Bank Co.,Ltd. Dadukou Branch Pledgor: Chongqing Gui Fei Technology Co.,Ltd. Registration number: Y2024500000015 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |