jagomart
digital resources
picture1_Java Tutorial Pdf 188253 | Lec3 Item Download 2023-02-02 18-06-02


 132x       Filetype PDF       File size 0.25 MB       Source: www.kth.se


File: Java Tutorial Pdf 188253 | Lec3 Item Download 2023-02-02 18-06-02
id2212 network programming with java lecture 3 multithreading with java hooman peiro sajjad vladimir vlassov kth ict scs ht 2015 outline introduction to threads multithreading with java thread class and ...

icon picture PDF Filetype PDF | Posted on 02 Feb 2023 | 2 years ago
Partial capture of text on file.
           ID2212 Network Programming with Java
                     Lecture 3
             Multithreading with Java
                   Hooman Peiro Sajjad
                    Vladimir Vlassov
                     KTH/ICT/SCS
                      HT 2015
                                   Outline
      •  Introduction to threads
      •  Multithreading with Java
          – Thread class and Runnable interface
          – Two ways of creating threads
      •  Java thread synchronization
          – synchronized methods and blocks
          – Shared objects as monitors; Bounded buffer (consumer-producer) example
      •  Concurrent utilities
          – Locks and Conditions;
          – The Executor framework; Example of using a thread pool
          – Synchronizers; Atomic variables; Concurrent collections
      •  Further reading: 
         http://docs.oracle.com/javase/tutorial/essential/concurrency/
                               Lecture 3:  Multithreading with Java         2
                      Process and Thread (1/2)
      •  Process: A unit of activity characterized by a sequence of 
         instructions, a current state and an associated set of system 
         resources
      •  Thread: A path of execution in a process characterized by an 
         execution state, execution stack and local variables
                               Lecture 3:  Multithreading with Java        3
                                        Process and Thread (2/2)
                                                                              Time 
                                                        Request                    Request
                   P1      t
                                    Thread t (Process 
                                        p1)
                                                                    server                     server
                                                                    server
                   P1   t1   t2       Thread t1 
                                     (Process p1)
                                      Thread t2 
                                     (Process p1)
                                                                          server
                                                             Lecture 3:  Multithreading with Java                                                    4
The words contained in this file might help you see if this file matches what you are looking for:

...Id network programming with java lecture multithreading hooman peiro sajjad vladimir vlassov kth ict scs ht outline introduction to threads thread class and runnable interface two ways of creating synchronization synchronized methods blocks shared objects as monitors bounded buffer consumer producer example concurrent utilities locks conditions the executor framework using a pool synchronizers atomic variables collections further reading http docs oracle com javase tutorial essential concurrency process unit activity characterized by sequence instructions current state an associated set system resources path execution in stack local time request p t server...

no reviews yet
Please Login to review.