in my programm
after menu when he selects a choice, next display of menu wait the termination of the selected thread.
while i want to show menu right after when a menu is selected.
plz reply soon.
Well one obvious problem is input, which thread gets the input if you have the menu continually running and checking input ? You don't really need threading for what you have right now, you just need something that determines what state you want and then go to it (group/personal/menu). That being said the standard library isn't that great for something like a messaging client, ie displaying what your typing and receiving a message. Would probably require operating system specific code to modify the console buffer.