Virtual Threads with Shaft Engine
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.
Features
- 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.
Getting Started
Follow the instructions below to set up and run the examples in this repository.
Prerequisites
- Java 21 or higher (required for virtual threads).
- Maven (for building the project).
- A compatible IDE (e.g., IntelliJ IDEA or Eclipse).
Installation
-
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:
-
Open the project in your favorite IDE.
Running the Examples
To run the examples:
- Navigate to the
src/test/javadirectory.
Repository Structure
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