From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <64c8196ab25721b971e64c96b6f8e065@plan9.jp> To: 9fans@cse.psu.edu From: Joel Salomon Date: Mon, 13 Nov 2006 22:23:17 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Subject: [9fans] Creating a custom jmp_buf; libthread implementation question Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: ddff20dc-ead1-11e9-9d60-3106f5b1d025 For my next homework in my Operating Systems class, the professor has assigned the equivalent of a simple libthread. I=E2=80=99ve been looking through the libthread code and getting lost =E2=98=B9. I don=E2=80=99t n= eed procs, only threads (except for the oh-so-fun complication of user-level pre-emptive scheduling, but I can worry about that ma=C3=B1ana). I do, however, need to create per-thread stacks, probably by massaging jmp_bufs in malloc()ed memory. Where in libthread does the stack get set up, and could somebody please give me a high-level overview of what the code is doing? Thanks, --Joel