• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Correct way to force kill a thread.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct way to force kill a thread.


  • Subject: Re: Correct way to force kill a thread.
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 22 Jun 2005 13:33:35 -0700

on 05/06/22 12:32, Ben D. Jones at email@hidden wrote:

> Well... I'll have to take a look at it. I reviewed those constants
> and am unsure how to manuipulate them from CURLHandle.  I'm asking
> this question in the CURLHandle mailing list as well. Thanks for the
> input, still working on it.

>> On Jun 21, 2005, at 1:27 PM, John Stiles wrote:
>>
>>> There is no way to force-kill a thread cleanly. You will leak
>>> memory, objects, network connections, etc. OTOH, you can force-
>>> kill a separate process cleanly and they are not expensive to create.

Ben, this is good advice from John.  I recently grappled my way through this
same tunnel of dead ends.  I heard about CURL but ended up with:

NSURL -> NSURLRequest -> NSConnection

You can set a timeout in NSURLRequest and manually cancel in NSConnection.
To reduce development time, avoid starting new threads whenever possible.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Correct way to force kill a thread.
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: Correct way to force kill a thread. (From: "Ben D. Jones" <email@hidden>)

  • Prev by Date: Re: Core Data: Changing Transient Keys Dirties Database?
  • Next by Date: Re: Correct way to force kill a thread.
  • Previous by thread: Re: Correct way to force kill a thread.
  • Next by thread: Re: Correct way to force kill a thread.
  • Index(es):
    • Date
    • Thread