没有合适的资源?快使用搜索试试~ 我知道了~
首页Concurrent, Real-Time and Distributed Programming in Java Threads, RTSJ 无水印原版pdf
Concurrent, Real-Time and Distributed Programming in Java Thread...
3星 · 超过75%的资源 需积分: 10 46 下载量 193 浏览量
更新于2023-03-16
评论
收藏 5.23MB PDF 举报
Concurrent, Real-Time and Distributed Programming in Java Threads, RTSJ and RMI 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
资源详情
资源评论
资源推荐
Concurrent, Real-Time and Distributed Programming in Java
FOCUS SERIES
Jean-Charles Pomerol
Concurrent, Real-Time and
Distributed Programming in Java
Threads, RTSJ and RMI
Badr Benmammar
First published 2018 in Great Britain and the United States by ISTE Ltd and John Wiley & Sons, Inc.
Apart from any fair dealing for the purposes of research or private study, or criticism or review, as
permitted under the Copyright, Designs and Patents Act 1988, this publication may only be reproduced,
stored or transmitted, in any form or by any means, with the prior permission in writing of the publishers,
or in the case of reprographic reproduction in accordance with the terms and licenses issued by the
CLA. Enquiries concerning reproduction outside these terms should be sent to the publishers at the
undermentioned address:
ISTE Ltd John Wiley & Sons, Inc.
27-37 St George’s Road 111 River Street
London SW19 4EU Hoboken, NJ 07030
UK USA
www.iste.co.uk www.wiley.com
© ISTE Ltd 2018
The rights of Badr Benmammar to be identified as the author of this work have been asserted by him in
accordance with the Copyright, Designs and Patents Act 1988.
Library of Congress Control Number: 2017957888
British Library Cataloguing-in-Publication Data
A CIP record for this book is available from the British Library
ISSN 2051-2481 (Print)
ISSN 2051-249X (Online)
ISBN 978-1-78630-258-8
Contents
List of Acronyms.................................... vii
Introduction ....................................... ix
Chapter 1. Introduction to Threads in Java ................. 1
1.1. Processes versus threads ............................ 1
1.2. Concurrent computing ............................. 2
1.3. Thread creation.................................. 3
1.4. Types of thread .................................. 4
1.5. Monotask versus multitask ........................... 5
1.6. Different states of a thread ........................... 13
1.7. Lifecycle of a thread .............................. 13
1.8. A few notes concerning threads ........................ 16
1.8.1. Two threads without using sleep ..................... 16
1.8.2. Time allocation between two threads .................. 17
1.8.3. Priority between threads .......................... 19
1.9. Programming a task: Timer and TimerTask ................. 21
1.9.1. By specifying an initial delay ....................... 21
1.9.2. With an initial delay and periodicity ................... 23
Chapter 2. Thread Synchronization ....................... 27
2.1. Synchronization upon termination: join() method ............. 27
2.2. Resource in mutual exclusion: synchronized modifier .......... 30
2.3. Shared variables: internal class ........................ 33
2.4. The problem with mutual exclusions ..................... 35
2.5. Synchronized block ............................... 36
2.6. Synchronized instance method ........................ 41
2.7. Shared variables: class variable ........................ 43
vi Concurrent, Real-Time and Distributed Programming in Java
2.8. Synchronization between threads ....................... 45
2.8.1. Wait and notifyAll ............................. 45
2.8.2. Wait and notify ............................... 48
2.9. Classic Producer–Consumer pattern ..................... 51
2.10. Semaphore in Java ............................... 54
2.10.1. Before Java 1.5 .............................. 55
2.10.2. After Java 1.5 ............................... 57
Chapter 3. Real-Time Systems and Real-Time Java ........... 61
3.1. Real-time systems ................................ 61
3.1.1. Definition .................................. 61
3.1.2. Examples of real-time operating systems ................ 62
3.1.3. Types of real-time ............................. 62
3.1.4. Architecture ................................. 63
3.1.5. Task ordinance with priorities ...................... 63
3.2. Java in real-time ................................. 65
3.2.1. RTSJ (Real-Time Specification for Java) ............... 65
3.2.2. Implementations .............................. 67
Chapter 4. Distributed Programming in Java ................ 71
4.1. Definition of a distributed application .................... 71
4.2. Communication in a distributed application ................. 72
4.2.1. Low-level communication: socket .................... 72
4.2.2. High-level communication: middleware ................ 89
Appendix ......................................... 127
Bibliography ....................................... 155
Index ............................................ 157
剩余168页未读,继续阅读
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- ExcelVBA中的Range和Cells用法说明.pdf
- 基于单片机的电梯控制模型设计.doc
- 主成分分析和因子分析.pptx
- 共享笔记服务系统论文.doc
- 基于数据治理体系的数据中台实践分享.pptx
- 变压器的铭牌和额定值.pptx
- 计算机网络课程设计报告--用winsock设计Ping应用程序.doc
- 高电压技术课件:第03章 液体和固体介质的电气特性.pdf
- Oracle商务智能精华介绍.pptx
- 基于单片机的输液滴速控制系统设计文档.doc
- dw考试题 5套.pdf
- 学生档案管理系统详细设计说明书.doc
- 操作系统PPT课件.pptx
- 智慧路边停车管理系统方案.pptx
- 【企业内控系列】企业内部控制之人力资源管理控制(17页).doc
- 温度传感器分类与特点.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1