小编rog*_*ht9的帖子

更改核心转储的位置

我想更改核心转储文件的默认位置,以便每次生成核心转储时,它都会转到该目录.此外,是否可以通过此位置中崩溃文件的名称保存转储文件?

linux coredump recovery crash-dumps

36
推荐指数
2
解决办法
9万
查看次数

在Linux中使用Core Dump进行检查点/重启

可以使用进程的核心转储实现Checkpoint/restart吗?核心文件包含进程的完整内存转储,因此理论上应该可以将进程恢复到转储核心时的状态.

linux coredump checkpoint

9
推荐指数
3
解决办法
2609
查看次数

构造函数的void修饰符导致异常

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)

java constructor modifier

0
推荐指数
1
解决办法
121
查看次数

为什么run()和sleep()不能保证我们在Java中运行和休眠状态?

最近我在某处读到使用方法run()和sleep()不能保证我们Java中一个线程的运行和休眠状态.有哪些方法我可以明确地演示它?

java multithreading

0
推荐指数
1
解决办法
67
查看次数