title: Use threads as "sessions"
body: <p>I am developing a text-based game, MUD. I have the base functions of the program ready, and now I would like to allow to connect more than one client at a time. I plan to use threads to accomplish that.</p>
  
  <p>In my game I need to store information such as current position or health points for each player. I could hold it in the database, but as it will change very quick, sometimes every second, the use of database would be inefficient (am I right?).</p>
  
  <p>My question is: can threads behave as "sessions", ie hold some data unique to each user? </p>
  
  <p>If yes, could you direct me to some resources that I could use to help me understand how it works?</p>
  
  <p>If no, what do you suggest? Is database a good option or would you recommend something else?</p>
  
  <p>Cheers,
  Eleeist</p>