This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Embedding kawa in a multi-threaded servlet environment (a few questions).
- From: Chris Dean <ctdean at sokitomi dot com>
- To: Eric Merritt <cyberlync at yahoo dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Tue, 30 Dec 2003 13:35:14 -0800
- Subject: Embedding kawa in a multi-threaded servlet environment (a few questions).
- References: <20031230202740.40064.qmail@web40808.mail.yahoo.com>
> Not a lot of information but there is one guy there claiming that kawa
> is very thread *unsafe* and I would just like one of you guys to
> confirm or deny. I
Put me in the "deny" category. We have multi-threaded code that is
running in production settings.
Kawa is a compiler that compiles code down to the java virtual machine.
It is just as thread safe as the JVM (and Java) is thread safe. Because
the code is running on a JVM you must "synchronize" code that needs to
be reentrant, just like you would in Java. The underlying libraries are
also thread safe.
There is a specific form in Kawa called "fluid-let" that is often used
in thread based programming. In the past, fluid-let has had bugs but
the current released code has all of these bugs fixed (as far as I can
tell at least!).
Regards,
Chris Dean