Re: OTNotifier in shared libraries
Re: OTNotifier in shared libraries
- Subject: Re: OTNotifier in shared libraries
- From: Jason Linhart <email@hidden>
- Date: Mon, 27 Jan 2003 12:07:40 -0500
On 1/27/03 11:46 AM Duane Murphy (email@hidden) wrote:
>
--- At Mon, 27 Jan 2003 10:06:22 -0500, Jason Linhart wrote:
>
>
>
>While I agree that OT can run without system task time, it is very
>
>unusual and lots and lots of extra work, to write an application which
>
>can interact with OT without system task time. Interarchy happens to be
>
>able to do this, hardly anything else has the code needed to work without
>
>system task time. So, as a practical matter system task time is usually
>
>required. I am only talking about OS 9 here.
>
>
This is very interesting Jason. We still do some work in OS/9. I would
>
love to know what is required to get OT to work without SystemTask time.
>
Is there a technote or example for reference? This would be very
>
interesting to know.
Several years ago this was a hot topic on this list. You can probably
find lots of useful information in the list archives.
They key to avoiding system task time is to write all of your networking
code (after program initialization) as completion routines. Each
completion routine that is called needs to initiate the next phase of
network access. You can't use threads in the normal sense, as they are
only run at system task time. A complete implementation in this style
takes time and tremendous attention to detail. There are lots of things
that you are not allowed to do in async completion routines, but you are
allowed to do just enough that with care you can get what you need done.
OS X removes any need for this approach to network code, so very few of
us still think about it. In my experience, the development investment
required for a project using that approach, which is starting today, is
way to large to be justified by the very limited user base of OS 9 that
remains.
Jason
-----------------
email@hidden
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.