How to Identify if the process in User Interface Process?
问题 How can I get information from a process that it is UI(User Interface) process or non-ui? With UI process I mean, Finder, Dock, System UI server, or any other mac application which has UI interface and it is used by Window Server. I want to determine this information from ProcessID. I am using mac os x. 回答1: There is no way to determine based purely on the PID number what a specific process is. The reason for this: Process IDs are assigned (somewhat) sequentially from PID=1 on startup, and