@Override
    public int getProcessId() {
      final String name = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
      final int idx = name.indexOf('@');
      if (idx > 0) {
        try {
          return Integer.parseInt(name.substring(0, idx));
        } catch (NumberFormatException nfe) {
          // something changed in the RuntimeMXBean name
        }
      }
      return 0;
    }
A generic fallback implementation of {@link NativeCalls} when no JNA based implementation could
be initialized (e.g. if JNA itself does not provide an implementation for the platform, or JNA
is not found).

@since GemFire 8.0
geode-core/src/main/java/org/apache/geode/internal/shared/NativeCalls.java