get_pid()是否冗余
匿名2023/07/31 19:51:38提问
    lab4student
325

    static int next_safe = MAX_PID, last_pid = MAX_PID;
    if (++ last_pid >= MAX_PID) {
        last_pid = 1;
        goto inside;
    }
    if (last_pid >= next_safe) {
    inside:
        next_safe = MAX_PID;
    repeat:
        le = list;

这段代码,怎么看,下面这句话也没有用呀~是否冗余呢~

if (last_pid >= next_safe) {
回答(1
    推荐问答
      Simple Empty
      暂无数据