threadpool with files