Welcome, Guest. Please login or register.

Author Topic: CreateNewProc() task termination  (Read 1867 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: CreateNewProc() task termination
« on: June 22, 2003, 11:54:45 AM »
Never abitrarily remove a thread. You should let it finish via a return from the entry function you used (just as a normal program returns from main).

As piru says, use a signalling policy. When your thread receives the appropriate signal it should finish up and clean up after itself.
int p; // A