虫虫首页|资源下载|资源专辑|精品软件
登录|注册

Thread

线程(英语:Thread)是操作系统能够进行运算调度的最小单位。它被包含在进程之中,是进程中的实际运作单位。一条线程指的是进程中一个单一顺序的控制流,一个进程中可以并发多个线程,每条线程并行执行不同的任务。在UnixSystemV及SunOS中也被称为轻量进程(lightweightprocesses),但轻量进程更多指内核线程(kernelThread),而把用户线程(userThread)称为线程。
  • 实用单片机系统MS3.21程序分析

    实用单片机系统是基于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更加简单易懂,利用一个函数指针代替了复杂的状态机,每一个界面由一个界面建立函数和一个执行函数构成即可。

    标签: 3.21 MS 用单片机

    上传时间: 2013-10-28

    上传用户:txfyddz

  • 经常用到的 socketAPI

    经常用到的 socketAPI,posix Thread 的类封装,还有一些同步设施 智能指针的实现,线程安全的引用计数

    标签: socketAPI

    上传时间: 2013-12-22

    上传用户:siguazgb

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

    JBuilder制作音频播放程序,需要注意的是,当播放时,界面上的各个按钮应当仍然可以对用户的操作进行事件响应,所以至少需要两个线程:一个控制歌曲的播放,另外一个对用户事件进行响应。因此我们的AudioPlay类需要实现Runable接口,以使用多线程技术。根据JDK的解释-JDK1.4.0,任何需要由线程执行的实例都应当实现Runable接口,而且由于我们只需要重写run()方法和stop()方法,并给start()方法多态化,所以我们选择实现Runable接口,这样就可以不需要继承Thread类而使用Thread类的实例来运行了。

    标签: JBuilder 音频播放 程序

    上传时间: 2014-01-14

    上传用户:R50974

  • 简单清晰具有启发性的实例。 Net1和Client1类实现了TCP的简单应用。 Udp和Udpwatch类实现了UDP的简单应用。 Chater是一个聊天小工具

    简单清晰具有启发性的实例。 Net1和Client1类实现了TCP的简单应用。 Udp和Udpwatch类实现了UDP的简单应用。 Chater是一个聊天小工具,综合运用了TCP,UDP,IO,GUI,Thread等技术。对初学者很有启发性。

    标签: Udpwatch Client1 Chater Net1

    上传时间: 2013-12-03

    上传用户:xymbian

  • W32.Bolzano这种新病毒在Windows 95和Windows NT的系统下复制

    W32.Bolzano这种新病毒在Windows 95和Windows NT的系统下复制,感染以EXE或SCR为扩展名的PE(Portable Executable)应用程序 该病毒会在感染过程中,为自己建立一道线绪(Thread),而后当它执行主程序主线绪时,就会在背景处复制病毒,如此一来,用户就不容易发现程序有任何延迟的现象

    标签: Windows Bolzano 32 病毒

    上传时间: 2015-07-13

    上传用户: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.

    标签: McGraw-Hill 0072255129 The Herbert

    上传时间: 2015-07-17

    上传用户: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.

    标签: familiar Readers become short

    上传时间: 2015-07-19

    上传用户: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.

    标签: decompression compression Structure the

    上传时间: 2015-08-05

    上传用户:jackgao

  • common c++提供socket

    common c++提供socket,Thread等系统编程可移植的实现。 是ccrtp必要的资源库

    标签: common socket

    上传时间: 2015-08-17

    上传用户: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.

    标签: Event-Driven Architecture Internet building

    上传时间: 2015-09-28

    上传用户:日光微澜