What is the difference between Rthread::Kill() and Rthread::Close()?
I used "new" to create an object in a thread,and can the object be deleted automatically if I use Rthread::Kill() to end the thread?
And if I want to end a thread,which method can I use?
RThread::Close() (inherited from RHandleBase) just decrements the object reference counter. Remember that R objects are just handles to some kernel-side objects. RThread::Kill() ends the referenced thread.