Add threadpool configuration
Add some samples