#Is reading/writing to a process from different threads safe?
1 messages · Page 1 of 1 (latest)
Killing another process should be very rare. If you're killing the process that your write thread is currently blocked on until that process reads (and vice versa), then you need to find a more opportune time to do your killing.
I'm only killing in case of an error. But when that happens there's a deadlock, the .kill() never finishes, not the write/read thread.
Reading and writing two separate handles should be fine, yes.
And yeah, I will echo "don't use kill" - you really want to have some sort of condition that the thread checks often and simply use that to have it terminate normally.