Task queue with groups and workers used thread.