This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [gcj] Priority setting
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 1 Nov 2007 17:21:41 +0000
- Subject: Re: [gcj] Priority setting
- References: <b609cb3b0710182352p3ebc08f7h38521e37a65ad731@mail.gmail.com> <18200.33305.749211.240739@zebedee.pink> <b609cb3b0711011017p14303215ke0e5095d5fce816d@mail.gmail.com>
NightStrike writes:
> On 10/19/07, Andrew Haley <aph-gcc@littlepinkcloud.com> wrote:
> > NightStrike writes:
> > > Does gcj support setting priorities for threads in a java process?
> >
> > Yes, it does. It passes the priority down to the underlying thread system.
>
> What is the underlying thread system? Does it incorporate pthreads,
> or some other thing?
That depends on the OS. Usually pthreads.
> > > Also, is garbage collection preemptible?
> >
> > You'll have to explain what you mean by that.
>
> In a Sun virtual machine environment, garbage collection can run at
> any arbitrary time, and there is nothing that the application can
> do to prevent this. In the case of timing-critical applications,
> the user is at a loss, and thus there can be no determinism in that
> environment. I am looking to see how well gcj can perform as an
> avenue for real time deterministic java applications.
Well, you have the source. The boehm gc, which gcj uses, isn't really
designed as a real-time gc. However, you don't have to use the Boehm
gc.
Andrew.