在一個(gè)多人連線伺服器中,我們要有一個(gè)伺服端執(zhí)行緒負(fù)責(zé)傾聽是否有客戶端連線,如果有客戶端連線,就指派一個(gè)客戶端執(zhí)行緒專門應(yīng)付這個(gè)客戶端連線,並在客戶端佇列中記錄它,然後進(jìn)入下一個(gè)傾聽。 一個(gè)客戶端執(zhí)行緒的工作,就是讀取客戶連線端的使用者輸入訊息,它不負(fù)責(zé)回應(yīng)訊息,而是將讀到的訊息加入訊息佇列中,此外在我們的範(fàn)例中,客戶端執(zhí)行緒也負(fù)責(zé)自己的連線狀態(tài),如果使用者中斷連線,客戶端執(zhí)行緒會(huì)負(fù)責(zé)將自己從客戶端佇列中清除。 廣播執(zhí)行緒負(fù)責(zé)取出訊息佇列中的訊息,然後將之一一傳送訊息給客戶端佇列中尚存在的客戶端執(zhí)行緒。
標(biāo)簽: 伺服器
上傳時(shí)間: 2015-05-22
上傳用戶:wweqas
最近去看監(jiān)視器材,看到他們的監(jiān)視軟體 就突發(fā)奇想自己來寫一個(gè)看看 程式會(huì)把移動(dòng)中的物體用綠色框框起來 並且把當(dāng)時(shí)的影像存成jpg檔(我把這個(gè)功能註解起來了) 我這個(gè)程式是在UltraEdit(類似記事本)下寫成的 程式裡用到JMF套件 主程式是webcamCapture.java
上傳時(shí)間: 2015-05-22
上傳用戶:zaizaibang
LVDS技術(shù): 低電壓差分訊號(hào)(LVDS)在對(duì)訊號(hào)完整性、低抖動(dòng)及共模特性要求較高的系統(tǒng)中得到了廣泛的應(yīng)用。本文針對(duì)LVDS與其他幾種介面標(biāo)準(zhǔn)之間的連接,對(duì)幾種典型的LVDS介面電路進(jìn)行了討論
上傳時(shí)間: 2014-01-13
上傳用戶:stvnash
Ever wanted to just type tail -f error_log on Windows?Envious of your Unix friends who can track changes to a file, in real time, as they happen? Well, now with the Objektiv Tail for Win32, you ll be happily monitoring your log files like you ve never done before. What s even better, you can track several files all at the same time with the patented "Multiple Document Interface"TM technology, with each file having its own, fabulous window.
標(biāo)簽: error_log Envious Windows friends
上傳時(shí)間: 2015-05-31
上傳用戶:rocwangdp
由玉面白狐修改的即時(shí)聊天,加入站長廣播,線上人數(shù)、防止穿牆及踢人,及加上發(fā)言時(shí)間及日期,可知是何時(shí)的發(fā)言,以及防止別人惡意洗畫面,修正一些之前的錯(cuò)誤,及小小重排了一下版面,再加java提示語法,滑鼠移至輸入項(xiàng)即提示消失
標(biāo)簽: 修改
上傳時(shí)間: 2015-06-02
上傳用戶:wlcaption
Frequency Scale Conversion From f To f Scale frq2mel mel2frq mel The mel scale is based on the human perception of sinewave pitch. frq2erb erb2frq erb The erb scale is based on the equivalent rectangular bandwidths of the human ear. frq2midi midi2frq midi The midi standard specifies a numbering of semitones with middle C being 60. They can use the normal equal tempered scale or else the pythagorean scale of just intonation. They will in addition output note names in a character format.
標(biāo)簽: Scale Conversion Frequency mel
上傳時(shí)間: 2015-06-07
上傳用戶:
/*用單純形算法求解多元函數(shù)極值計(jì)算機(jī)程序代碼*/ /************************ *試用單純形法求目標(biāo)函數(shù): *f(x)= 4(x1 -5)*(x1 -5) + (x2 -6)*(x1 -5) *的極小值 *************************/
上傳時(shí)間: 2015-06-08
上傳用戶:李夢(mèng)晗
這是一個(gè)求 f(x)=x*sin(10PI*x)+2.0 的遺傳算法程序
上傳時(shí)間: 2013-12-17
上傳用戶:dbs012280
完整的I2C slave model以及spec詳附在內(nèi),適合想利用verilog開發(fā)此類傳輸?shù)娜藚⒖?/p>
標(biāo)簽: verilog slave model spec
上傳時(shí)間: 2015-06-10
上傳用戶:s363994250
完整的jpeg encoder verilog code,DCT部分採用1991 IEEE transection paper,利用skew circular convolution來實(shí)現(xiàn)精簡電路
標(biāo)簽: convolution transection circular encoder
上傳時(shí)間: 2014-01-20
上傳用戶:waizhang
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1