MacOSX: find out if a process (given a PID) is running in 32bit or in 64bit Intel mode
I have a PID and I want to find out if the process is running in 32bit or in 64bit Intel mode. How? I can do via NSRunningApplication . [[NSRunningApplication runningApplicationWithProcessIdentifier:pid] executableArchitecture] returns the Mach-O architecture constant . This works only for GUI applications, though... 来源: https://stackoverflow.com/questions/7335245/macosx-find-out-if-a-process-given-a-pid-is-running-in-32bit-or-in-64bit-inte