Here's a class that extends the Thread class.
class WorkerThread(name: String) : Thread(name) {
override fun run() {
// the method does something
}
}
1) Create two instances of the given class and set the names like "worker-X", where X is any suffix (use the constructor to set a name).
2) Start the created threads. The method run of each instance must be executed in a new thread.
Note: the given class will be added to your solution automatically.