• 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: [Q] efficient or good model for send/receive with streams scheduled in runloop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?


  • Subject: Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?
  • From: JongAm Park <email@hidden>
  • Date: Thu, 29 Jan 2009 07:16:09 -0800

Thank you for your comment.

Shawn Erickson wrote:
A lock? As in NSLock, etc.? Why do you think you need a lock here
given it isn't multi-thread and the fact that IO appears to be driven
by a runloop which will serialize access for you.

At first, I was not sure if the Run-Loop was implemented using thread or signal.
So, I tried locking, but it turned out that it was not multithreaded from app programmer's point of view.
It seems to be implemented using signal, so using lock was not helpful.
You gave us very little actionable information, we can only guess at
your implementation. You will have to provide more details and ideally
sample code.

-Shaw
Yeah... I know. I also often say so if someone asks me and information he gives me is not sufficient.
However, I also understand that sometimes there is no way to provide more information.
So, by discussing I can figure out what he really wants.
By the way I asked somewhat general design using a delegate message triggered by a run-loop.
You see such kind of model from many books on network programming.


Anyway, thank you for your comment again.

JongAm Park
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?
      • From: Michael Ash <email@hidden>
References: 
 >[Q] efficient or good model for send/receive with streams scheduled in runloop? (From: JongAm Park <email@hidden>)
 >Re: [Q] efficient or good model for send/receive with streams scheduled in runloop? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Query on CrashReporter
  • Next by Date: Re: NSView behaves different on 10.4 vs 10.5?
  • Previous by thread: Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?
  • Next by thread: Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?
  • Index(es):
    • Date
    • Thread