Extending Functionality: gen_server_ext

Vance Shipley <>
Thu Mar 20 20:37:00 CET 2003

Ah well that is another story isn't it? 

You can do two main things to share knowledge between processes in

	1) store it in ETS

	2) store it in the State data of a server process

The latter is probably a more pure solution.  You can call ETS
cheating in the same way that the process dictionary is cheating
if you wish.  I call it optimizing. :)

I use ETS quite often for this purpose.  I'm especially prone to:

	ets:update_counter(Tid, callReference, 1).


On Thu, Mar 20, 2003 at 02:14:24PM -0500, Shawn Pearce wrote:
}  Erlang has a two kinds of globals:
}  	registered processes
}  	named ets tables

More information about the erlang-questions mailing list