(See attached file: app.java)(See attached file: sharedlib.txt)
(See attached file: javacore4377.txt)
Hi friends,
My application terminates with a segmentation fault. The application is a swing
based user interface.
On starting, the application starts an infinite loop in shared library in a
thread . The infinite loop in the
shared library updates a global data structure when ever data occurs. Another
thread in the application,
reads data from the global data structure in the shared library. I did not
provide any synchronization
between the two threads, but the thread which reads data from shared library
sleeps for 1.500 sec in
each iteration. Is the lack of synchronization causing the problem? Should I use
semaphores in shared
library to block application thread accessing the global data structure of
shared library, when the infinite
loop in the shared library is updating it? I am attaching the core dump message
and portion of source also.
Please provide a clue to solve this problem.
regards,
syam
app.java
Text - character set unknown
Text - character set unknown