Skip to content

Akshayshahi900/Thread_pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Thread Pool

Spawns N worker threads. Each worker waits for jobs from a channel. When you call execute(closure), it sends the closure to the channel. A free worker picks it up and runs it.

Why it's useful: Run async tasks without spawning new threads every time.

Performance: Basic mpsc channel, all workers share one receiver.

About

A work stealing Threadpool.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages