Skip to content

A shared memory parallel API for Java with a close syntax to OpenMP

Notifications You must be signed in to change notification settings

cjferna/Java-Parallel-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Simple parallel API for Java

A shared memory parallel API for Java with a close syntax to OpenMP. Developed to make it easier for students who only know Java to understand parallel programming before they start with OpenMP.

Example

parallelApi.parallel( t -> {
    System.out.println("Thread ID: " + t);
	parallelApi.single(() -> System.out.println("First arriving thread will execute"));		
	parallelApi.master(t, () -> System.out.println("Master thread execute"));		
	
	parallelApi.ordered(t, () -> {
	    System.out.println("Executed as sequential code")
	    ...
	});	
	
	parallelApi.critical(t, () -> {
	    System.out.println("Only one thread at the same time")
	    ...
	});	
});

About

A shared memory parallel API for Java with a close syntax to OpenMP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages