Skip to content

回答cyber笔记中的疑问 #51

@DieYoungWsn

Description

@DieYoungWsn

image

uint32_t pid = cr->processor_id();
这一句,processor_id默认值是-1(二进制位上全是1),但是赋值给无符号32位整型变量pid时,pid就是uint32_t的最大值(2^32-1),肯定要大于逻辑CPU(Processor)的数量的,所以入全局队列。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions