9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Creating a custom jmp_buf; libthread implementation question
@ 2006-11-14  3:23 Joel Salomon
  2006-11-14  3:33 ` Joel Salomon
  2006-11-14  5:44 ` [9fans] Skip Tavakkolian
  0 siblings, 2 replies; 13+ messages in thread
From: Joel Salomon @ 2006-11-14  3:23 UTC (permalink / raw)
  To: 9fans

For my next homework in my Operating Systems class, the professor has
assigned the equivalent of a simple libthread.  I’ve been looking
through the libthread code and getting lost ☹.  I don’t need procs,
only threads (except for the oh-so-fun complication of user-level
pre-emptive scheduling, but I can worry about that mañana).  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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-11-21  3:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-14  3:23 [9fans] Creating a custom jmp_buf; libthread implementation question Joel Salomon
2006-11-14  3:33 ` Joel Salomon
2006-11-14  9:39   ` Bruce Ellis
2006-11-14 12:34     ` Russ Cox
2006-11-14 16:15       ` Joel Salomon
2006-11-21  3:03       ` Joel Salomon
2006-11-21  3:03         ` William Josephson
2006-11-21  3:08         ` Russ Cox
2006-11-14  9:58   ` Gorka guardiola
2006-11-14 16:25     ` Joel Salomon
2006-11-14 16:38       ` Joel Salomon
2006-11-14 19:44         ` Taj Khattra
2006-11-14  5:44 ` [9fans] Skip Tavakkolian

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).