亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

threAD

線程(英語:threAD)是操作系統(tǒng)能夠進(jìn)行運(yùn)算調(diào)度的最小單位。它被包含在進(jìn)程之中,是進(jìn)程中的實(shí)際運(yùn)作單位。一條線程指的是進(jìn)程中一個(gè)單一順序的控制流,一個(gè)進(jìn)程中可以并發(fā)多個(gè)線程,每條線程并行執(zhí)行不同的任務(wù)。在UnixSystemV及SunOS中也被稱為輕量進(jìn)程(lightweightprocesses),但輕量進(jìn)程更多指內(nèi)核線程(kernelthreAD),而把用戶線程(userthreAD)稱為線程。
  • 實(shí)用單片機(jī)系統(tǒng)MS3.21程序分析

    實(shí)用單片機(jī)系統(tǒng)是基于MCU8051硬件平臺下開發(fā)的一款操作平臺,它不是一個(gè)操作系統(tǒng),而是一個(gè)操作平臺,主要借鑒了操作系統(tǒng)、手機(jī)的一些概念,比如消息機(jī)制、系統(tǒng)時(shí)鐘、軟件定時(shí)器、平臺等概念。 實(shí)用單片機(jī)系統(tǒng)的核心理念是:在一個(gè)標(biāo)準(zhǔn)化的硬件基礎(chǔ)上(如8051,avr,arm等)擴(kuò)展一個(gè)標(biāo)準(zhǔn)化的軟件平臺,把常規(guī)項(xiàng)目常用的一些功能如串口通訊、串口調(diào)試、系統(tǒng)定時(shí)器、軟件定時(shí)器、按鍵界面處理等通過消息機(jī)制組織起來,形成一個(gè)完整的系統(tǒng)。當(dāng)一個(gè)特定的項(xiàng)目需要增加或者刪除一項(xiàng)具體的功能時(shí),只需要在平臺上增加或者去掉相應(yīng)的功能即可,這樣項(xiàng)目不需要每次重新構(gòu)思架構(gòu),也不需要從零開始,并且原有的系統(tǒng)通過各個(gè)項(xiàng)目沉淀后,更加穩(wěn)定可靠,這就是平臺的概念,它不是各個(gè)子函數(shù)的集合。 相對于現(xiàn)在的很多人把RTOS操作系統(tǒng)應(yīng)用于MCU來說,往往只為了實(shí)現(xiàn)任務(wù)的調(diào)度轉(zhuǎn)換而不考慮功能的實(shí)用、易用性,此外因其較高的資源占用性導(dǎo)致其不適合在MCU類低資源的嵌入式平臺應(yīng)用,MS系統(tǒng)相對于這些RTOS來說,首先還是保留了編程者的常規(guī)前后臺思維,但又加了一些RTOS的優(yōu)點(diǎn),如軟件定時(shí)器實(shí)現(xiàn)的時(shí)間片任務(wù)系統(tǒng),類似RTOS的任務(wù),其次為編程者實(shí)現(xiàn)了整個(gè)程序的框架和一些常用的函數(shù)及接口功能如按鍵、串口、時(shí)鐘等,讓編程者把精力放在跟項(xiàng)目相關(guān)的地方,甚至不需要關(guān)心所用MCU的寄存器配置,再次就是代碼非常簡單,容易學(xué)習(xí),尤其是建議大家采用SourceInsight查看程序,遠(yuǎn)比keil編輯器的功能強(qiáng),它是C語言下最好的編輯器。而MS3.21版本,建議大家直接在Keil的軟件仿真器下運(yùn)行學(xué)習(xí)。 MS資料可以從以下網(wǎng)址下載:http://www.study-bbs.com/threAD-46471-1-1.html讀者有什么疑問也可以在這個(gè)版面提問,作者將盡力解釋。目前MS3.21版本增加了一個(gè)GUI操作框架,相比目前已有的GUI更加簡單易懂,利用一個(gè)函數(shù)指針代替了復(fù)雜的狀態(tài)機(jī),每一個(gè)界面由一個(gè)界面建立函數(shù)和一個(gè)執(zhí)行函數(shù)構(gòu)成即可。

    標(biāo)簽: 3.21 MS 用單片機(jī)

    上傳時(shí)間: 2013-10-29

    上傳用戶:txfyddz

  • 經(jīng)常用到的 socketAPI

    經(jīng)常用到的 socketAPI,posix threAD 的類封裝,還有一些同步設(shè)施 智能指針的實(shí)現(xiàn),線程安全的引用計(jì)數(shù)

    標(biāo)簽: socketAPI

    上傳時(shí)間: 2013-12-22

    上傳用戶:siguazgb

  • JBuilder制作音頻播放程序,需要注意的是

    JBuilder制作音頻播放程序,需要注意的是,當(dāng)播放時(shí),界面上的各個(gè)按鈕應(yīng)當(dāng)仍然可以對用戶的操作進(jìn)行事件響應(yīng),所以至少需要兩個(gè)線程:一個(gè)控制歌曲的播放,另外一個(gè)對用戶事件進(jìn)行響應(yīng)。因此我們的AudioPlay類需要實(shí)現(xiàn)Runable接口,以使用多線程技術(shù)。根據(jù)JDK的解釋-JDK1.4.0,任何需要由線程執(zhí)行的實(shí)例都應(yīng)當(dāng)實(shí)現(xiàn)Runable接口,而且由于我們只需要重寫run()方法和stop()方法,并給start()方法多態(tài)化,所以我們選擇實(shí)現(xiàn)Runable接口,這樣就可以不需要繼承threAD類而使用threAD類的實(shí)例來運(yùn)行了。

    標(biāo)簽: JBuilder 音頻播放 程序

    上傳時(shí)間: 2014-01-14

    上傳用戶:R50974

  • 簡單清晰具有啟發(fā)性的實(shí)例。 Net1和Client1類實(shí)現(xiàn)了TCP的簡單應(yīng)用。 Udp和Udpwatch類實(shí)現(xiàn)了UDP的簡單應(yīng)用。 Chater是一個(gè)聊天小工具

    簡單清晰具有啟發(fā)性的實(shí)例。 Net1和Client1類實(shí)現(xiàn)了TCP的簡單應(yīng)用。 Udp和Udpwatch類實(shí)現(xiàn)了UDP的簡單應(yīng)用。 Chater是一個(gè)聊天小工具,綜合運(yùn)用了TCP,UDP,IO,GUI,threAD等技術(shù)。對初學(xué)者很有啟發(fā)性。

    標(biāo)簽: Udpwatch Client1 Chater Net1

    上傳時(shí)間: 2013-12-04

    上傳用戶:xymbian

  • W32.Bolzano這種新病毒在Windows 95和Windows NT的系統(tǒng)下復(fù)制

    W32.Bolzano這種新病毒在Windows 95和Windows NT的系統(tǒng)下復(fù)制,感染以EXE或SCR為擴(kuò)展名的PE(Portable Executable)應(yīng)用程序 該病毒會(huì)在感染過程中,為自己建立一道線緒(threAD),而后當(dāng)它執(zhí)行主程序主線緒時(shí),就會(huì)在背景處復(fù)制病毒,如此一來,用戶就不容易發(fā)現(xiàn)程序有任何延遲的現(xiàn)象

    標(biāo)簽: Windows Bolzano 32 病毒

    上傳時(shí)間: 2015-07-14

    上傳用戶:wuyuying

  • The Art of C++ by Herbert Schildt ISBN:0072255129 McGraw-Hill/Osborne © 2004 The author of

    The Art of C++ by Herbert Schildt ISBN:0072255129 McGraw-Hill/Osborne © 2004 The author of this text applies C++ to a wide variety of high-powered, practical applications, each focusing on a different aspect of the language. Examples range from a garbage collector subsystem and a threAD control panel to AI-based searches and more.

    標(biāo)簽: McGraw-Hill 0072255129 The Herbert

    上傳時(shí)間: 2015-07-18

    上傳用戶:lx9076

  • Readers can pick up this book and become familiar with C++ in a short time. Stan has taken a very br

    Readers can pick up this book and become familiar with C++ in a short time. Stan has taken a very broad and complicated topic and reduced it to the essentials that budding C++ programmers need to know to write real programs. His case study is effective and provides a familiar threAD throughout the book.

    標(biāo)簽: familiar Readers become short

    上傳時(shí)間: 2015-07-20

    上傳用戶:thinode

  • Structure the sources so that the compression and decompression code form a library usable by any

    Structure the sources so that the compression and decompression code form a library usable by any program, and write both gzip and zip on top of this library. This would ideally be a reentrant (threAD safe) library, but this would degrade performance. In the meantime, you can look at the sample program zread.c.

    標(biāo)簽: decompression compression Structure the

    上傳時(shí)間: 2015-08-06

    上傳用戶:jackgao

  • common c++提供socket

    common c++提供socket,threAD等系統(tǒng)編程可移植的實(shí)現(xiàn)。 是ccrtp必要的資源庫

    標(biāo)簽: common socket

    上傳時(shí)間: 2015-08-18

    上傳用戶:1101055045

  • The Staged Event-Driven Architecture (SEDA) is a new design for building scalable Internet services.

    The Staged Event-Driven Architecture (SEDA) is a new design for building scalable Internet services. SEDA has three major goals: To support massive concurrency, on the order of tens of thousands of clients per node To exhibit robust performance under wide variations in load and, To simplify the design of complex Internet services. SEDA decomposes a complex, event-driven application into a set of stages connected by queues. This design avoids the high overhead associated with threAD-based concurrency models, and decouples event and threAD scheduling from application logic. SEDA enables services to be well-conditioned to load, preventing resources from being overcommitted when demand exceeds service capacity. Decomposing services into a set of stages also enables modularity and code reuse, as well as the development of debugging tools for complex event-driven applications.

    標(biāo)簽: Event-Driven Architecture Internet building

    上傳時(shí)間: 2015-09-28

    上傳用戶:日光微瀾

主站蜘蛛池模板: 忻州市| 徐闻县| 罗源县| 大荔县| 富锦市| 麦盖提县| 孟州市| 顺平县| 吴江市| 舒城县| 喀喇| 九台市| 黔南| 图木舒克市| 琼海市| 汉寿县| 通化市| 曲阳县| 金山区| 平武县| 曲周县| 张家界市| 大洼县| 江永县| 镶黄旗| 渑池县| 定边县| 平陆县| 凌源市| 芜湖市| 邹平县| 海阳市| 即墨市| 胶州市| 调兵山市| 伽师县| 阳新县| 商南县| 日照市| 房产| 清原|