This repository demonstrates the use of virtual threads with the Shaft Engine. Virtual threads allow for lightweight and efficient multithreading, enabling developers to execute concurrent tasks without the overhead of traditional threads.
- Virtual Threads: Lightweight threading model for high concurrency.
- Shaft Engine: Efficient task scheduling and execution.
- Examples: Real-world use cases to showcase virtual threads in action.
- Performance Metrics: Benchmarks to compare virtual threads against traditional threading models.
Follow the instructions below to set up and run the examples in this repository.
- Java 21 or higher (required for virtual threads).
- Maven (for building the project).
- A compatible IDE (e.g., IntelliJ IDEA or Eclipse).
-
Clone the repository:
git clone https://github.com/your-username/virtual-threads-shaft-engine.git cd virtual-threads-shaft-engine
-
Build the project using Maven:
mvn clean install
-
Open the project in your favorite IDE.
To run the examples:
- Navigate to the
src/test/java
directory.
virtual-threads-shaft-engine/
│
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ ├── page objects/ # Page Objects classes
│ └── test/
│ ├── Tests/ # Test Classes
├── README.md # Project documentation
└── pom.xml # Maven build file