Salta al contenuto principale della pagina

CONCURRENT AND DISTRIBUTED PROGRAMMING

CODE 80170
ACADEMIC YEAR 2021/2022
CREDITS
  • 6 cfu during the 2nd year of 11160 COMPUTER ENGINEERING (LM-32) - GENOVA
  • SCIENTIFIC DISCIPLINARY SECTOR ING-INF/05
    LANGUAGE English
    TEACHING LOCATION
  • GENOVA
  • SEMESTER 1° Semester
    TEACHING MATERIALS AULAWEB

    OVERVIEW

    The successful student will be able to leverage threads, synchronization, collections, java networking and RMI to develop complete Java multithreaded and distributed solutions for simple real world problems.

    AIMS AND CONTENT

    LEARNING OUTCOMES

    The goals of this course are: 1) Acquire familiarity with cornerstone problems in concurrent and distributed programming; 2) Acquire familiarity with the tools provided by Java 2 Standard Edition (J2SE) to tackle those problems and their practical use.

    AIMS AND LEARNING OUTCOMES

    The main objectives of the course are:

    provide to the student the theoretical bases for understanding concurrency and synchronization;

    provide to the student an applied knowledge of the Java language constructs that allow dealing with concurrency and shared resources in a multithreaded environment;

    provide to the student a basic knowledge of network and distributed programming in Java.

    PREREQUISITES

    This course assumes the student has a working knowledge of Object Oriented Programming and is capable of reading and understanding example code.

    TEACHING METHODS

    Theoretical teaching with slides and real time step-by-step development of solutions for example problems

    SYLLABUS/CONTENT

    A brief review of the main Object Oriented Programming adopting the Java language.

    Primitive types and Object types. Arrays and Strings. The concept of immutable object.

    Classes, fields, methods, instance and class fields and methods. Constructors and static initializers. Inheritance and class hierarchies.

    Polimorphism and type checking: static and dynamic binding.

    Error checking and handling through exceptions. Propagation of error conditions.

    Compile time type checking and run time type checking, the use of generics in Java classes.

    Threads. Thread vs. process, memory model, switching model, execution model. Process memory segmentation in a multithreaded environment.

    Shared resources and the concept of race condition.

    Java instruments to sanitize the code dealing with a shared resource: synchronized blocks, locks.

    The concept of condition and the need for atomicity when testing conditions and altering the system state.

    Waiting for conditions: from busy waiting to wait/notify or await/signal.

    Applying synchronization to complex data structures such as Java Collections.

    Network programming in Java. Streams and Sockets. Datagram Sockets. Data serialization. Object Serialization.

    Distributed Object Oriented programming: Java RMI.

    Java RMI layered architecture: The stub/skeleton layer, The Remote Reference layer, The Transport Layer, The Application Layer.

    Skeleton based servers and skeletonless servers: introduction to Java reflections.

    RECOMMENDED READING/BIBLIOGRAPHY

    Core Java: Fundamentals, Cay S. Horstmann

    Core Java: Advanced Features, Cay S. Horstmann

    TEACHERS AND EXAM BOARD

    Exam Board

    MAURO MIGLIARDI (President)

    PIERPAOLO BAGLIETTO

    ALESSIO MERLO

    MASSIMO MARESCA (President Substitute)

    LESSONS

    LESSONS START

    20/09/2021

    Class schedule

    All class schedules are posted on the EasyAcademy portal.

    EXAMS

    EXAM DESCRIPTION

    Solution Code Synthesis

    Solution Code Analysis

    ASSESSMENT METHODS

    Code correctness, compliance to requisites, and efficiency

    Exam schedule

    Date Time Location Type Notes
    17/01/2022 09:00 GENOVA Scritto
    09/02/2022 09:00 GENOVA Scritto
    07/06/2022 09:00 GENOVA Scritto
    28/06/2022 09:00 GENOVA Scritto
    05/09/2022 09:00 GENOVA Scritto