Hi Primrose, Primrose Mbanefo wrote: > > Hello everyone, > I have a program which uses the consummer and producer example in the > tutorial but how can the consummer reset the histograms in shared memory? If > the consumer resets the histogram the producer suffers a segmentation fault. > Only the producer should write into the shared memory. > Is it possible for the consummer to send a signal to the producer via the > shared memory so that the producer can send a reset histogram instead of the > original histogram or do I need to create another shared memory for the > signal to go through. > > or is there another way of attacking the problem? > You must implement a dialog mechanism. I suggest you look at hclient.C/hserv.C for an example. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET