Skip to content

Creating histograms for a folder and its contents using a variety of multithreaded paradigms

Notifications You must be signed in to change notification settings

lucas-carvajal/multithreaded-histogram-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multithreaded Histogram Service

What is it and what does it do?

Upon running the main function, you are presented with a GUI to create a Histogram for a folder and all its files using a variety of different multithreaded approaches.
It creates the histogram by reading through all files in the folder and its subfolders, creating a histogram for all files and then aggregating them.
When executing one of the options, updates on which files are processed and eventually the final histogram get printed to the console.

How to use it?

  1. Make sure you use Java 11
  2. Run the main function in "/Assignment4/src/main/java/de/uniba/wiai/dsg/pks/assignment/Main.java" with the following program arguments:
    1. GUI
    2. /path/to/folder/for/which/histogram/should/be/generated
    3. txt (or whichever files you want to search)

What did I learn?

  • Threads, Shared Memory and Locking
  • Semaphor, Consumer-Producer Paradigm and Fork/Join Framework
  • Java Stream API
  • Message Passing with TCP-Sockets
  • Actor Model using Akka

Disclaimers

This was a project I did for my Parallel Programming class.
The work was done in a group of three and the GUI to execute the different multithreaded histogram services was already given by our instructors.

About

Creating histograms for a folder and its contents using a variety of multithreaded paradigms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages