pid

@JvmStatic
fun pid(): Int(source)

Retrieves the current process' ID

Throws

UnsupportedOperationException

when:

  • Java9+ and module 'java.management' is not present

  • Kotlin/Js or Kotlin/WasmJs Browser