- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
附录B旅行社服务质量暗访制度及评分[精品]
Graphics 159.235 Graphics * 159.235 Graphics Graphical Programming Lecture 18 - Introduction to Threads 159.235 Graphics * Intro to Threads- Outline What is a Thread? Uses in Timing or Animation in Games and Simulation Many systems are in fact multi-threaded - you do not always see or need to be aware of the system threads working in the background Java has several systems threads for the Garbage Collector and for the AWT graphics system Using Java inbuilt thread facilities 159.235 Graphics * What is A Thread? Normally we think of our program as being a single thread of control The CPU architecture has: A program (compiled code) A program counter Program context - ie memory allocated, values in registers A multi-threaded program has a set of “virtual CPUs” Each has its own thread of control, linked to a separate program counter Threads generally share the program code and memory allocation of a single program (unlike eg full “processes”) 159.235 Graphics * Cooperating threads Several threads running the same program can usefully cooperate to help the user achieve an outcome eg managing the windows system or mouse and keyboard Think of threads as a way of conceptualising or managing a concurrent or parallel program that can effectively “do” several things at once 159.235 Graphics * Using Threads Needs careful planning in the general case Need to consider what each thread will do… How will they be initialised? How will they exchange information (eg shared variables) Threads libraries are available for common programming languages like C or C++ Java has a threads system integrated into the language Thread object or Runnable interface 159.235 Graphics * Java Threads The Java Virtual Machine (JVM has several system threads that help your program run Garbage Collector thread wakes up periodically and recovers memory no longer used by unreferenced objects AWT graphics thread looks after the various events that can occur ina
您可能关注的文档
最近下载
- Unit 1 Fun numbers and letters (说课稿)-2024-2025学年人教PEP版(一起)(2024)英语二年级上册.docx VIP
- 印刷成本核算方式.docx VIP
- 森林防火教学课件.ppt VIP
- 二级保密资格档案目录(24盒)优质材料.doc VIP
- 2025水利工程五大员专业题库(含答案).docx VIP
- 图书馆业务知识培训ppt课件.pptx VIP
- 传感器智能传感器与无线传感器网络技术.pptx VIP
- 中国共产党基层组织选举工作条例学习宣贯ppt课件.pptx VIP
- 游消费者行为学(第二版)孙九霞全套PPT课件.pptx
- 东芝 e-STUDIO 2000AC 2500AC 彩色复印机维修手册(拆卸安装篇).pdf VIP
文档评论(0)