我想更改核心转储文件的默认位置,以便每次生成核心转储时,它都会转到该目录.此外,是否可以通过此位置中崩溃文件的名称保存转储文件?
可以使用进程的核心转储实现Checkpoint/restart吗?核心文件包含进程的完整内存转储,因此理论上应该可以将进程恢复到转储核心时的状态.
public class This_testing {
int x,y;
public This_testing(int x,int y){ //Why modifier void here would cause exception?
this.x=x;
this.y=y;
}
public static void main(String [] args){
This_testing t =new This_testing(40,50);
System.out.println(t.x+" "+t.y);
}
}
Run Code Online (Sandbox Code Playgroud)
为什么对构造函数This_testing使用修饰符void会导致以下异常:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code -
constructor This_testing in class practice.This_testing cannot be applied to given types;
required: no arguments
found: int,int
reason: actual and formal argument lists differ in length
at practice.This_testing.main(This_testing.java:13)
Run Code Online (Sandbox Code Playgroud) 最近我在某处读到使用方法run()和sleep()不能保证我们Java中一个线程的运行和休眠状态.有哪些方法我可以明确地演示它?
coredump ×2
java ×2
linux ×2
checkpoint ×1
constructor ×1
crash-dumps ×1
modifier ×1
recovery ×1