createThreadFactory

fun createThreadFactory(name: String, priority: Int? = null, threadGroup: ThreadGroup = Thread.currentThread().threadGroup): ThreadFactory

Creates a new ThreadFactory object with a specified name.

Return

a new ThreadFactory object.

Parameters

name

The name of the thread factory.

priority

The priority to set

threadGroup

The thread group to use.