M
Mr B
In my application I have two methods which can be run by an infinite
number of threads, the operation of the method is to output an array
of contents one line at a time. If I use the keyword synchronized on
the Display1 method then this works fine and not the outputs get
interupted by the other Display1 threads, likewise with Display2. But
is there are way that just these two particular methods can also not
interrupt each other aswell? At the moment they are giving me mixed
up output from the two seperate methods.
Thanks
Daniel
number of threads, the operation of the method is to output an array
of contents one line at a time. If I use the keyword synchronized on
the Display1 method then this works fine and not the outputs get
interupted by the other Display1 threads, likewise with Display2. But
is there are way that just these two particular methods can also not
interrupt each other aswell? At the moment they are giving me mixed
up output from the two seperate methods.
Thanks
Daniel