The invention discloses an Erlang process
timeout management method. The method comprises the following steps: S1, creating N
timeout supervision processes of which the number is equal to the number of cores of a CPU; S2, when each
timeout supervision process is started, creating an ordered ts table; S3, using an agent function as an entrance of the Erlang process to be supervised, randomly selecting an ts table by the agent function, and putting process execution
expiration time endtime and a process identity pid into the ts table to form a
primary key {endtime, pid}; S4, executing a real
entry point function and parameters by the agent function; S5, enabling each timeout supervision process to scan out a
primary key with endtime smaller than the
current time in the ts table at set intervals, executing an ending operation on a process identity pid corresponding to the
primary key, and removing the primary key from the ts table; S6, enabling the proxy function to remove timeout data ofthe process with the primary key being {end-time, pid}. The invention provides a process timeout supervision method which is extremely low in performance loss, has no single-point
bottleneck and makes full use of a multi-core CPU, and destructive influence of abnormal processes such as endless loop and the like on
system performance is avoided.