The ets table table will automatically end after the creation process ends

The ets table table will be destroyed after the creation process, so when we call it, except for the operation of creating the process, an error will be reported. At this time, we need to use ets: giveaway(table name, transferred process id, []) to Transfer ets information out.

The ETS Table is created by the process, and the process destroys the ETS Table as well. When using Shell to do ETS experiments, pay attention to the fact that the ownership relationship of the Table can be given_away to other processes.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326394452&siteId=291194637