0

I'm having a java code which i would have to kill because sometimes it takes 100% cpu usage for infinite time. Below is the code but java has no means to kill this thread while running.

If this is possible in any other programming language like scala or groovy which i can addon to the present java project or altogether i have to shift to some other programming language please suggest.

p = Pattern.compile("(?i).*\\bc\\+\\+\\B.*");
m = p.matcher(desc);
if(m.find()) {
      desc = desc + "cplusplus ";
}
Pradyut Bhattacharya
  • 5,440
  • 13
  • 53
  • 83

0 Answers0