V
Volker Raum
Hi everyone,
i would like to hear some thoughts about a problem i stumbled upon while thinking about writing a
modulebased software.
Following situation:
I got a main functionality coded in a Java program. (JSE or JEE doesnt matter, i think)
To extend this functionality i will give 3rd parties the opportunity to develop extensions.
Those are called from the main program via a methodcall within the same virtual machine.
Maybe the 3rd party did a mistake or simply coded malware like
public void aMethod()
{
while(true) {
}
}
Calling this method will cause a severe CPU Utilisation problem.
The simple question is: how do i avoid this?
An extra thread will not help i think, because the method still causes CPU utilisation.
And what do i do with such a "never ending" thread? i cant kill it from "extern" after started.
So, any thoughts?
greets,
Volker
i would like to hear some thoughts about a problem i stumbled upon while thinking about writing a
modulebased software.
Following situation:
I got a main functionality coded in a Java program. (JSE or JEE doesnt matter, i think)
To extend this functionality i will give 3rd parties the opportunity to develop extensions.
Those are called from the main program via a methodcall within the same virtual machine.
Maybe the 3rd party did a mistake or simply coded malware like
public void aMethod()
{
while(true) {
}
}
Calling this method will cause a severe CPU Utilisation problem.
The simple question is: how do i avoid this?
An extra thread will not help i think, because the method still causes CPU utilisation.
And what do i do with such a "never ending" thread? i cant kill it from "extern" after started.
So, any thoughts?
greets,
Volker