一個簡單的Java多線程的小例子。 a) Producer 生產(chǎn) String,并保存在 ArrayList 中。Consumer 消耗(讀出并顯 示)String,并把它從 ArrayList 中刪除。生產(chǎn)和消耗應(yīng)在 console有打印顯示。 b) 可指定生產(chǎn)者生產(chǎn)多少個數(shù)據(jù),也可以指定消費(fèi)者消耗多少個數(shù)據(jù)。完成要求數(shù)據(jù) 的生產(chǎn)或消費(fèi)以后,線程自動終止。(應(yīng)提供相應(yīng)的構(gòu)造函數(shù)來指定數(shù)據(jù)個數(shù)) c) 當(dāng)容器內(nèi)沒有數(shù)據(jù)時,Consumer 應(yīng)等待,等容器內(nèi)有新的數(shù)據(jù)后再次開始消費(fèi)。
標(biāo)簽: Producer String Java 多線程
上傳時間: 2016-07-22
上傳用戶:yimoney
robocup 2d source of Obake_OPU,a japanese robocup 2d team
標(biāo)簽: robocup Obake_OPU japanese source
上傳時間: 2016-07-25
上傳用戶:1583060504
This Source-Navigator, an IDE for C/C++/Fortran/Java/Tcl/PHP/Python and a host of other languages. Source-Navigator includes powerful source code comprehension features that help a developer understand complex relationships between elements of a program s source.
標(biāo)簽: Source-Navigator languages Fortran Python
上傳時間: 2013-12-22
上傳用戶:yyyyyyyyyy
Program main BIOS image | | /B - Program Boot Block | | /N - Program NVRAM | | /C - Destroy CMOS checksum | | /E - Program Embedded Controller Block | | /K - Program all non-critical blocks | | /Kn - Program n th non-critical block only(n=0-7) | | /Q - Silent execution | | /REBOOT - Reboot after programming | | /X - Don t Check ROM ID | | /S - Display current system s ROMID | | /Ln - Load CMOS defaults
標(biāo)簽: Program Destroy Block NVRAM
上傳時間: 2016-07-26
上傳用戶:wfl_yy
關(guān)于PIC16F877溫度在線檢測 B包含LCD初始化,顯示功能
上傳時間: 2016-07-26
上傳用戶:hfmm633
Artistic Style is a reindenter and reformatter of C, C++, C# and Java source code. When indenting source code, we as programmers have a tendency to use both spaces and tab characters to create the wanted indentation. Moreover, some editors by default insert spaces instead of tabs when pressing the tab key, and other editors (Emacs for example) have the ability to "pretty up" lines by automatically setting up the white space before the code on the line, possibly inserting spaces in a code that up to now used only tabs for indentation.
標(biāo)簽: reformatter reindenter and Artistic
上傳時間: 2013-12-20
上傳用戶:康郎
MeyboMail Web(脈博郵件系統(tǒng)客戶端)是一個純Java編寫的,基于B/S模式的郵件系統(tǒng)客戶端軟件,系統(tǒng)表示層使用easyjf.com(簡易java框架)的 EasyJWeb框架開發(fā),主要通過調(diào)用java mail實(shí)現(xiàn)郵件的收發(fā)。MeyboMail Web主要配合MeyboMail Server(脈博郵件服務(wù)器系統(tǒng))使用,MeyboMail Server是使用Java編寫,可以運(yùn)行在任何支持Java的服務(wù)器系統(tǒng)平臺。擁有自主知識產(chǎn)權(quán)的郵件服務(wù)器系統(tǒng)軟件,系統(tǒng)實(shí)現(xiàn)了POP3,ESMTP 等郵件協(xié)議,支持服務(wù)器群集,可以運(yùn)行在多臺服務(wù)器上。
標(biāo)簽: MeyboMail EasyJWeb easyjf Java
上傳時間: 2014-11-14
上傳用戶:qq21508895
This is the source for a C compiler that generates 386 or m68K code. Code generation is fairly good although the optimizer is a little naive... the code itself should be highly portable although there are some issues involved with porting from MSDOS that have to be resolved for example the size of LONG on unix machines is so big some of the code generated gets messed up. Code generation requires TASM to assemble the compiler output you can use the borland TLINK to produce executables, or the Watcom WLINK can also be used. PMODE systems written by TRAN are used for the DPMI interface.
標(biāo)簽: generation generates compiler fairly
上傳時間: 2016-08-01
上傳用戶:sxdtlqqjl
標(biāo)準(zhǔn)化考試系統(tǒng) (B/S網(wǎng)絡(luò)版) 用JAVA編寫的考試系統(tǒng),是JAVA課程設(shè)計時的作品! 客戶端主類ClientBS 客戶端選擇試題界面ChoiceFile 客戶端考試界面ClientTestArea 服務(wù)器端主類Server 服務(wù)器端讀取試題 ReadTestquestion
標(biāo)簽: JAVA 標(biāo)準(zhǔn)化 網(wǎng)絡(luò)
上傳時間: 2013-12-26
上傳用戶:yyyyyyyyyy
單鏈表的操作 初始條件: 已知A,B和C為三個遞增有序的線性表,現(xiàn)要求對A表作如下操作:刪去那些既在B表中出現(xiàn)又在C表中出現(xiàn)的元素。 (1) 各線性表采用單鏈表作為存儲結(jié)構(gòu); (2) 題中任一線性表中的元素值可以相同。 (3) 測試用例自己設(shè)計。
上傳時間: 2014-01-06
上傳用戶:13188549192
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1