• 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: Multiprocessor problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiprocessor problem?


  • Subject: Re: Multiprocessor problem?
  • From: Justin Walker <email@hidden>
  • Date: Mon, 17 Mar 2003 13:07:41 -0800

On Monday, Mar 17, 2003, at 12:52 US/Pacific, Mark Hunt wrote:

Hi

I have an App that crashes occasionally on dual processor machines. The computer appears to become bus-locked, but it's hard to be sure. Only a reset/power cycle will bring it back.

OS is 10.2.4. Any dual-cpu Mac will do!

Some minor changes to the network code seem to changed the probability of this bug.

My networking code uses a blocking BSD socket, which places part of the packet data into a circular array of buffers when it unblocks (data arrives), and loops.

Is it possible for this code to execute concurrently (on both processors at the same time) for different packets? This would definitely explain my problem!

It theoretically not possible for this to happen [but there's a difference between theory and practice...]. The BSD part of the kernel uses one of two funnels to avoid running into this kind of race condition. One of the funnels is specifically for code that touches the networking infrastructure, and the other is for everything else.

Is this 'app' purely user-mode, or does it have some kernel code associated with it (that you have developed)?

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*
_______________________________________________
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.
References: 
 >Multiprocessor problem? (From: Mark Hunt <email@hidden>)

  • Prev by Date: Multiprocessor problem?
  • Next by Date: Internal modem API's query
  • Previous by thread: Multiprocessor problem?
  • Next by thread: Re: Multiprocessor problem?
  • Index(es):
    • Date
    • Thread