ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Dec/threads-in-Objective-C

This is threads-in-Objective-C in view mode; [Up]


Date: Sun 05-Dec-1989 22:43:23 From: Unknown Subject: threads in Objective-C does anyone know the restrictions or implications of using threads in a Objective-C app? i use multiple threads in my C apps on the NeXT. is multi-threaded O-C apps recommended?
Date: Sun 08-Dec-1989 06:36:18 From: Unknown Subject: Re: threads in Objective-C In article <299@kgw2.UUCP> dennisg@kgw2.UUCP (Dennis Glatting) writes: >does anyone know the restrictions or implications of using threads >in a Objective-C app? i use multiple threads in my C apps on the NeXT. >is multi-threaded O-C apps recommended? Multiple-threads should work fine, as long as you watch out for the standard sort of problems. However, trying to access the dps connection through multiple threads is likely to cause trouble; don't try to do drawing or event handling at the same time from separate threads in one app. Ali >From: gerrit@nova.cc.purdue.edu (Gerrit)
Date: Sun 08-Dec-1989 21:15:32 From: Unknown Subject: Re: threads in Objective-C In article <299@kgw2.UUCP> dennisg@kgw2.UUCP (Dennis Glatting) writes: >does anyone know the restrictions or implications of using threads >in a Objective-C app? i use multiple threads in my C apps on the NeXT. >is multi-threaded O-C apps recommended? > You should not have more than one thread causing updates to the display. We had difficulties with this in our demo software. One thread was updating one field and during that update, another thread caused another field to be updated. This totally confused the state of the display code. We used a mutex to serialize access to the display code and things have worked ok after that.

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.