用多線程同步方法解決讀者閱覽問(wèn)題 1) 每個(gè)讀者進(jìn)入閱覽室后,即時(shí)顯示“Entered” 及其線程自定義標(biāo)識(shí),還同時(shí)顯示閱覽室共有幾名顧客及其所坐的位置。 2) 至少有10個(gè)讀者,每人閱覽至少3秒鐘。 3) 多個(gè)讀者須共享操作函數(shù)代碼。 2總的設(shè)計(jì)思想及系統(tǒng)平臺(tái)、語(yǔ)言、工具: 設(shè)計(jì)思想:程序設(shè)定的是10個(gè)讀者和5個(gè)座位,對(duì)讀者進(jìn)行編號(hào),依次進(jìn)入閱覽室讀書(shū),為每一座位列一表目,包括座號(hào)和讀者號(hào)等,讀者離開(kāi)時(shí)要登出,即消掉登記的信息。 系統(tǒng)平臺(tái):LINUX 語(yǔ)言:C語(yǔ)言 工具:vi編輯器、gcc編譯器 操作系統(tǒng):linux操作系統(tǒng) 調(diào)試工具:edit、masm、link、debug. 3數(shù)據(jù)結(jié)構(gòu)與模塊說(shuō)明(功能與流程圖) 數(shù)據(jù)結(jié)構(gòu) int count=0 //記錄閱覽室讀者數(shù)量 sem_t full //定義閱覽室座位信號(hào)量 int seat[5] //用數(shù)組表示座位 pthread_t reader[10] //定義讀者線程 pthread_mutex_t mutex //定義互斥量 3.2功能說(shuō)明 可以標(biāo)識(shí)讀者,隨機(jī)為讀者設(shè)置在閱覽室的讀書(shū)時(shí)間 可以顯示閱覽室讀者的人數(shù) 可以顯示讀者所坐的位置,座位狀態(tài)以及列出空座位
標(biāo)簽: 多線程同步
上傳時(shí)間: 2016-08-10
上傳用戶:zsjzc
Versatile visual servoing without knowledge of true jacobian.pdf cobian matrix estimator. The Jacobian matrix estimator does not need a priori knowledge of the kinematic structure and parameters of the robot system, such as camera and link parameters. The proposed visual servoing control scheme ensures the convergence of the image-features to desired trajectories, by using the estimated Jacobian matrix, which is proved by the Lyapunov stability theory. To show the effectiveness of the proposed scheme, simulation and experimental results are presented.
標(biāo)簽: Versatile knowledge estimator servoing
上傳時(shí)間: 2016-08-26
上傳用戶:大三三
本代碼應(yīng)用于串口通信的應(yīng)用熟悉Tornado的集成開(kāi)發(fā)環(huán)境,通過(guò)CS850(CPU是Motorola的Power PC 850)的SCC(Serial Communication Controller)端口在NMSI方式下實(shí)現(xiàn)HDLC(High Data Link Communication)協(xié)議的自環(huán)通信。
標(biāo)簽: Tornado 代碼 串口通信 應(yīng)用于
上傳時(shí)間: 2014-01-19
上傳用戶:hullow
ADM6993F/FXFiber to Fast Ethernet Converter (TS1000 CPE Complied) The ADM6993F/FX is a single chip integrating two 10/100 Mbps MDIX TX/FX transceivers, a three-port 10/100M Ethernet L2 switch controller, and one OAM engine to meet demanding applications, including Fiber-to-Ethernet media converters, especially the fiber to the home (FTTH) media converters. The ADM6993F/FX feature set includes link pass through (LPT), TS1000 OAM frame receiving/processing/transmitting, programmable link status LED display, various loop-back modes, and one configurable MII ports for snooping/inserting OAM frame from/to 100Fx. The ADM6993FX is the environmentally friendly “green” package version.
標(biāo)簽: 6993 ADM Converter Ethernet
上傳時(shí)間: 2014-01-01
上傳用戶:hebmuljb
CPU的code banking技術(shù)實(shí)例: This Zip file contains five (3) folders: FastChip Project Files * This folder contains a folder called "Bank" that should be moved into: <install_root>\FastChip\Projects Keil Project Files * These files are to be put into the directory of your choice and the project is to be opened from within Keil Hex Files * These files are the output of Keil. If you do not want to compile and link all of the code, these files can be loaded into FastChip directly
標(biāo)簽: This FastChip contains banking
上傳時(shí)間: 2016-10-01
上傳用戶:a3318966
This a simple database management system. It doesn t use any other code (i.e. ODBC, ADO, etc.) and has it s own database file format. I wrote it because I found the other DBMSs code too bulky and hard to debug. It s designed for small applications and I doubt it could handle anything on a large scale. A sample program included in the .zip shows how everything works. The database project is a library project, so you ll have to compile and link with the .lib file to get everything working. Pros: - You have the source code so you know exactly what it is doing - Database files are very small - Small and fast code Cons: - Can t handle large amounts of records (more than 65000ish) - Doesn t support SQL (you have to search the database by cycling through the records and testing them against your constraints) - Each database file can only have one table.
標(biāo)簽: i.e. management database simple
上傳時(shí)間: 2016-10-02
上傳用戶:851197153
This application note is used to demonstrate the use of MATCOM software (by Mathtools Corporation) to generate Dynamic Link Library files (*.dll files) that can be used with ACOLADE.
標(biāo)簽: Corporation application demonstrate Mathtools
上傳時(shí)間: 2016-10-25
上傳用戶:gengxiaochao
NASM2.03匯編編譯器,支持跨平臺(tái)編譯,可以生成,支持各種常用Link工具的目標(biāo)代碼文件。 支持64位匯編指令。內(nèi)附原版參考文檔。
上傳時(shí)間: 2016-11-14
上傳用戶:vodssv
使用Rapi API,將在pc上的檔案透過(guò)ActiveSync傳送到mobile上。需link rapi.lib方可使用。
上傳時(shí)間: 2013-12-26
上傳用戶:xsnjzljj
ISO/IEC13239,Information technology-Telecommunications and information exchange between systems-High level data link control(HDLC) procedures
標(biāo)簽: technology-Telecommunications systems-High Information information
上傳時(shí)間: 2013-12-28
上傳用戶:zhaiyanzhong
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1