Skip to content

[2023/11/14 21:15][NOT SOLVED][question] prompt> ./cpu A & ./cpu B & ./cpu C & ./cpu D & #1

@OccupyMars2025

Description

@OccupyMars2025

OS: Ubuntu 22.04.3 LTS (Codename: jammy)

https://pages.cs.wisc.edu/~remzi/OSTEP/intro.pdf , page 4

https://github.com/OccupyMars2025/ostep-code/tree/master/intro

Question: what's happening under the hood ? Using Ctrl+C cannot halt the execution (Use Ctrl+D to exit the terminal)

clues :

Note how we ran four processes at the same time, by using the & symbol. Doing so runs a
job in the background in the zsh shell, which means that the user is able to immediately issue
their next command, which in this case is another program to run. If you’re using a different
shell (e.g., tcsh), it works slightly differently; read documentation online for details.
Ctrl+C seems to halt the execution of jobs running in the foreground

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