Code Monkey home page Code Monkey logo

threadpoolexecutordemoapp's Introduction

ThreadPoolExecutorDemoApp

This project demonstrates some topics related to the ThreadPoolExecutor that is part of the Executor framework.

You can easily adjust some of the executor configurations like:

  • Rejection policy (including a custom rejection policy)
  • The number of tasks to be executed
  • Core thread pool size
  • Maximum thread pool size
  • Queue size
  • Configure core threads to be pre-started
  • Safe stop a test
  • Explicitly stop a test

During a test execution you will be able to:

  • See the queue size as it changes
  • See the number of active threads
  • See the number of thread in the pool
  • Dynamically change the number of maximum thread pool

In the end it will give a summary of what have done:

  • Number of Enqueued Tasks
  • Number of Started Tasks
  • Number of Completed Tasks
  • Number of Not Completed Tasks
  • Number of Rejected Tasks

The idea is to help developers to better visualize some of the innumerous possibilities of configuration this framework offers.

Please, refer to this article for detailed information.

Demo

License

This project is licensed under the MIT License - see the LICENSE file for details

threadpoolexecutordemoapp's People

Contributors

joaomotondon avatar

Stargazers

Melih Gültekin avatar

Watchers

James Cloos avatar  avatar  avatar

threadpoolexecutordemoapp's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.