9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9fans@9fans.net
Subject: Re: [9fans] Any material on processes?
Date: Fri, 16 Jun 2023 11:46:41 -0400	[thread overview]
Message-ID: <EDC0523185B1E3EEE0426C7E44E4236D@eigenstate.org> (raw)
In-Reply-To: <16869271090.FaCc40.570700@composer.9fans.topicbox.com>

Quoth dusan3sic@gmail.com:
> I want to look into process management and how a scheduler works and thing like that, but all I can find is inter-process communication with 9P and the rest is all just file systems. Any help?

look at:

        man 9 sched


        % g '^sched' /sys/src/9/port
        /sys/src/9/port/proc.c:66: schedinit(void)              /* never returns */
        /sys/src/9/port/proc.c:166: sched(void)

'up' is a global variable for the current 'user proc'.
'm' is a "cpu-local" global variable for the current
Mach struct.

9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T0435dff1125b5a83-M998d685afbdbb38730a8e630
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  parent reply	other threads:[~2023-06-16 15:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-16 14:51 dusan3sic
2023-06-16 15:34 ` unobe
2023-06-16 15:46 ` ori [this message]
2023-06-16 17:21   ` dusan3sic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EDC0523185B1E3EEE0426C7E44E4236D@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9fans@9fans.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).