Skip to content

criicchio/pcd-lab-02-done

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PCD a.y. 2024-2025 - ISI LM UNIBO - Cesena Campus

Lab Activity #02 - 20250303

Previous Lab Activity - Exercise solutions

  • Solution to Exercise 01
    • Exploiting Concurrent Thinking: naturally decomposing the problem to reduce complexity, using an active component (thread) for each word (WordFallingAgent)
  • Solution to Exercise 02
    • Simple solution with 2 threads + General solution with N threads
      • Enhancing JVM heap memory if needed: -Xms, -Xmx options (e.g. -Xms2G -Xmx4G)
    • Measuring speed-up and efficiency
    • ideas for improving the approach

Thread Safety and Critical Sections in Java - First Look

  • module-lab-1.3 - Thread Safety
  • Critical sections using low-level Java primitives - pcd.lab02.cs_raw
    • What's the sequence that will never be printed on standart output?
  • Work-in-Lab #01 - Thread safety - lost update
    • Check lost update problem in pcd.lab02.lost_updates
    • Implement a solution based on basic Java low-level mechanism
  • Work-in-Lab #02 - Thread safety - check and act
    • Check check & act problem in pcd.lab02.check_act
    • Implement a solution, based on basic Java low-level mechanism

Model Checking with Java Path Finder (JPF): A First Look

About

Lab Activity #02 - 20250303

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%