實用單片機系統是基于MCU8051硬件平臺下開發的一款操作平臺,它不是一個操作系統,而是一個操作平臺,主要借鑒了操作系統、手機的一些概念,比如消息機制、系統時鐘、軟件定時器、平臺等概念。 實用單片機系統的核心理念是:在一個標準化的硬件基礎上(如8051,avr,arm等)擴展一個標準化的軟件平臺,把常規項目常用的一些功能如串口通訊、串口調試、系統定時器、軟件定時器、按鍵界面處理等通過消息機制組織起來,形成一個完整的系統。當一個特定的項目需要增加或者刪除一項具體的功能時,只需要在平臺上增加或者去掉相應的功能即可,這樣項目不需要每次重新構思架構,也不需要從零開始,并且原有的系統通過各個項目沉淀后,更加穩定可靠,這就是平臺的概念,它不是各個子函數的集合。 相對于現在的很多人把RTOS操作系統應用于MCU來說,往往只為了實現任務的調度轉換而不考慮功能的實用、易用性,此外因其較高的資源占用性導致其不適合在MCU類低資源的嵌入式平臺應用,MS系統相對于這些RTOS來說,首先還是保留了編程者的常規前后臺思維,但又加了一些RTOS的優點,如軟件定時器實現的時間片任務系統,類似RTOS的任務,其次為編程者實現了整個程序的框架和一些常用的函數及接口功能如按鍵、串口、時鐘等,讓編程者把精力放在跟項目相關的地方,甚至不需要關心所用MCU的寄存器配置,再次就是代碼非常簡單,容易學習,尤其是建議大家采用SourceInsight查看程序,遠比keil編輯器的功能強,它是C語言下最好的編輯器。而MS3.21版本,建議大家直接在Keil的軟件仿真器下運行學習。 MS資料可以從以下網址下載:http://www.study-bbs.com/thread-46471-1-1.html讀者有什么疑問也可以在這個版面提問,作者將盡力解釋。目前MS3.21版本增加了一個GUI操作框架,相比目前已有的GUI更加簡單易懂,利用一個函數指針代替了復雜的狀態機,每一個界面由一個界面建立函數和一個執行函數構成即可。
上傳時間: 2013-10-29
上傳用戶:txfyddz
經常用到的 socketAPI,posix thread 的類封裝,還有一些同步設施 智能指針的實現,線程安全的引用計數
標簽: socketAPI
上傳時間: 2013-12-22
上傳用戶:siguazgb
JBuilder制作音頻播放程序,需要注意的是,當播放時,界面上的各個按鈕應當仍然可以對用戶的操作進行事件響應,所以至少需要兩個線程:一個控制歌曲的播放,另外一個對用戶事件進行響應。因此我們的AudioPlay類需要實現Runable接口,以使用多線程技術。根據JDK的解釋-JDK1.4.0,任何需要由線程執行的實例都應當實現Runable接口,而且由于我們只需要重寫run()方法和stop()方法,并給start()方法多態化,所以我們選擇實現Runable接口,這樣就可以不需要繼承thread類而使用thread類的實例來運行了。
上傳時間: 2014-01-14
上傳用戶:R50974
簡單清晰具有啟發性的實例。 Net1和Client1類實現了TCP的簡單應用。 Udp和Udpwatch類實現了UDP的簡單應用。 Chater是一個聊天小工具,綜合運用了TCP,UDP,IO,GUI,thread等技術。對初學者很有啟發性。
標簽: Udpwatch Client1 Chater Net1
上傳時間: 2013-12-04
上傳用戶:xymbian
W32.Bolzano這種新病毒在Windows 95和Windows NT的系統下復制,感染以EXE或SCR為擴展名的PE(Portable Executable)應用程序 該病毒會在感染過程中,為自己建立一道線緒(thread),而后當它執行主程序主線緒時,就會在背景處復制病毒,如此一來,用戶就不容易發現程序有任何延遲的現象
上傳時間: 2015-07-14
上傳用戶:wuyuying
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.
標簽: McGraw-Hill 0072255129 The Herbert
上傳時間: 2015-07-18
上傳用戶:lx9076
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.
標簽: familiar Readers become short
上傳時間: 2015-07-20
上傳用戶:thinode
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.
標簽: decompression compression Structure the
上傳時間: 2015-08-06
上傳用戶:jackgao
common c++提供socket,thread等系統編程可移植的實現。 是ccrtp必要的資源庫
上傳時間: 2015-08-18
上傳用戶:1101055045
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.
標簽: Event-Driven Architecture Internet building
上傳時間: 2015-09-28
上傳用戶:日光微瀾