On Tuesday, August 19, 2003, at 8:02 PM, raldrich@mac.com wrote: My biggest question is, what thread APIs should I be using. Keeping in mind that I'd like this file system to eventually port to other flavors of BSD Unix, I don't think I should use IOKit threads, and I'm not sure about Mach threads either - Would Posix threads be appropriate? Nope. There is no pthread support in the kernel. And it really doesn't matter which of the other mechanisms you use to allocate your thread - they all assume a fixed size kernel stack (16KB currently). Also, it occurs to me that what I'm trying to do here doesn't really need the overhead of threads - an API similar to Windoze's _Call_On_My_Stack kernel function would work just as well. Does anything like that exist in Darwin? Nope. We do the opposite (call this when I wake up - forget about my stack until then). That's why a fixed-sized kernel stack is important on our platform. It sounds like you might have some stack allocations to go hunt down after all. --Jim _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Jim Magee