• 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: Thread issue - sure can use some help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread issue - sure can use some help


  • Subject: Re: Thread issue - sure can use some help
  • From: John Draper <email@hidden>
  • Date: Tue, 11 Apr 2006 12:55:30 -0700

Steve Checkoway wrote:


On Apr 8, 2006, at 5:00 PM, John Draper wrote:

Jeff Moore wrote:


On Apr 7, 2006, at 5:10 PM, John Draper wrote:

Jeff Moore wrote:

The crash looks to me like your thread is trying to message a bad ObjC object. That implies some kind of data coherency issue in your code. My guess is that you have one thread that is disposing of an object while another thread is trying to use it.



yes - That is what I suspect, but I'm clueless as to how to deal with it. Especially since I'm using
a thread from some outside non-mac code I'm using (JRTPLIB). Although it uses the POSIX
pthreads, somehow I have to get it to "know about" the MTCoreAudio. If you've seen my
earlier postings, I asked the group about using the @synchronize directive, but don't know
how to use it, or how much latency it's going to introduce in the program.



I'm not an ObjC expert, but I think the @synchronize directive works more or less like synchronized methods in Java do.


Many people have mentioned this, but when I ask them about how to use it, I just get blank stares.
I found just ONE technote that mentioned it, but no mention about the object I pass it and
what it does. Is this the object that has the data structures I'm to protect? or is this
the object pointing to the class I'm in when I call it?


If it's anything like Java, then it is acquiring that object's monitor and it will block until it is acquired and once acquired, nothing else can enter the monitor. It's more or less like
http://portal.acm.org/ft_gateway.cfm? id=358824&type=pdf&coll=portal&dl=ACM&CFID=402248&CFTOKEN=20978246

Your search - http://portal.acm.org/ft_gateway.cfm? id=358824 - did not match any documents.
That URL don't work for me.... WTF? I tried every trick in the book on this URL - one time
it went to ACM portal asking me to log in.



I have no idea what you are talking about when you mention "P" and "V" above...


In Dijkstra's THE operating system, he invented semaphores and gave names to the two operations P and V. This paper is a bit self- absorbed at the beginning but describes semaphores in the appendix:
http://portal.acm.org/ft_gateway.cfm?
id=363143&type=pdf&dl=GUIDE&dl=ACM&CFID=12480957&CFTOKEN=95562556


As for the names, V stands for verhoog which is Dutch for increase while P stands for his made up word prolaag which wikipedia tells me is short for probeer te verlagen; loosely translated as try to decrease. To quote from http://en.wikipedia.org/wiki/Semaphore_% 28programming)

Oh, OK, thanx for the explanation. But these URL's you included are inaccessable to me.
One time, I had assumed there was a line break between .cfm? and the "id" - It showed up
as space on my browser, I deleted it, and that didnt work either.


John

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


References: 
 >Thread issue - sure can use some help (From: John Draper <email@hidden>)
 >Re: Thread issue - sure can use some help (From: Jeff Moore <email@hidden>)
 >Re: Thread issue - sure can use some help (From: John Draper <email@hidden>)
 >Re: Thread issue - sure can use some help (From: Jeff Moore <email@hidden>)
 >Re: Thread issue - sure can use some help (From: John Draper <email@hidden>)
 >Re: Thread issue - sure can use some help (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: Thread issue - sure can use some help
  • Next by Date: Re: Thread issue - sure can use some help
  • Previous by thread: Re: Thread issue - sure can use some help
  • Next by thread: Re: Thread issue - sure can use some help
  • Index(es):
    • Date
    • Thread