Muutke küpsiste eelistusi

E-raamat: Concurrent, Real-Time Programming in Java - Threads, RTSJ and RMI: Threads, RTSJ and RMI [Wiley Online]

(Abu Bekr Belkaid University, Tlemcen, Algeria)
  • Formaat: 176 pages
  • Ilmumisaeg: 09-Jan-2018
  • Kirjastus: ISTE Ltd and John Wiley & Sons Inc
  • ISBN-10: 1119476763
  • ISBN-13: 9781119476764
Teised raamatud teemal:
  • Wiley Online
  • Hind: 174,45 €*
  • * hind, mis tagab piiramatu üheaegsete kasutajate arvuga ligipääsu piiramatuks ajaks
  • Formaat: 176 pages
  • Ilmumisaeg: 09-Jan-2018
  • Kirjastus: ISTE Ltd and John Wiley & Sons Inc
  • ISBN-10: 1119476763
  • ISBN-13: 9781119476764
Teised raamatud teemal:

This book provides an introduction to concurrent, real-time, distributed programming with Java object-oriented language support as an algorithm description tool. It describes in particular the mechanisms of synchronization (cooperative and competitive) and sharing of data (internal class, static variables) between threads in Java. He then discusses the use of Java for real-time applications. Consequently, a presentation of the RTSJ (Real Time Specification for Java) specification dedicated to the development of real-time applications in Java is also introduced in this book. Finally, a presentation of programming distributed in Java is presented in this book. We are particularly interested in communication using the TCP Sockets and high-level communication using Java Remote Method Invocation (RMI). The book also contains an annex which contains a practical set of application exercises in relation to the theme of the book. Knowledge of the Java language is a prerequisite for understanding the book.

List of Acronyms
vii
Introduction ix
Chapter 1 Introduction to Threads in Java
1(26)
1.1 Processes versus threads
1(1)
1.2 Concurrent computing
2(1)
1.3 Thread creation
3(1)
1.4 Types of thread
4(1)
1.5 Monotask versus multitask
5(8)
1.6 Different states of a thread
13(1)
1.7 Lifecycle of a thread
13(3)
1.8 A few notes concerning threads
16(5)
1.8.1 Two threads without using sleep
16(1)
1.8.2 Time allocation between two threads
17(2)
1.8.3 Priority between threads
19(2)
1.9 Programming a task: Timer and TimerTask
21(6)
1.9.1 By specifying an initial delay
21(2)
1.9.2 With an initial delay and periodicity
23(4)
Chapter 2 Thread Synchronization
27(34)
2.1 Synchronization upon termination: join() method
27(3)
2.2 Resource in mutual exclusion: synchronized modifier
30(3)
2.3 Shared variables: internal class
33(2)
2.4 The problem with mutual exclusions
35(1)
2.5 Synchronized block
36(5)
2.6 Synchronized instance method
41(2)
2.7 Shared variables: class variable
43(2)
2.8 Synchronization between threads
45(6)
2.8.1 Wait and notifyAll
45(3)
2.8.2 Wait and notify
48(3)
2.9 Classic Producer--Consumer pattern
51(3)
2.10 Semaphore in Java
54(7)
2.10.1 Before Java 1.5
55(2)
2.10.2 After Java 1.5
57(4)
Chapter 3 Real-Time Systems and Real-Time Java
61(10)
3.1 Real-time systems
61(4)
3.1.1 Definition
61(1)
3.1.2 Examples of real-time operating systems
62(1)
3.1.3 Types of real-time
62(1)
3.1.4 Architecture
63(1)
3.1.5 Task ordinance with priorities
63(2)
3.2 Java in real-time
65(6)
3.2.1 RTSJ (Real-Time Specification for Java)
65(2)
3.2.2 Implementations
67(4)
Chapter 4 Distributed Programming in Java
71(56)
4.1 Definition of a distributed application
71(1)
4.2 Communication in a distributed application
72(55)
4.2.1 Low-level communication: socket
72(17)
4.2.2 High-level communication: middleware
89(38)
Appendix 127(28)
Bibliography 155(2)
Index 157
Badr Benmammar, University of Abou Bekr-Belkaïd, Algeria.