Implement (PCB)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
mohamedaboelmagd
Posts: 1
Joined: Wed Nov 02, 2011 2:46 pm

Implement (PCB)

Post by mohamedaboelmagd »

Please faster reply
I can't implement data structure that represent Process Control Block
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: Implement (PCB)

Post by Jezze »

Ok, then you'll get a fast answer. Basically you need a struct containing a page directory (if you have paging) and for multitasking you need three integers which represents eip, esp and ebp (for remembering the state when context switching). And a pid number probably. That's it =)
Last edited by Jezze on Wed Nov 02, 2011 3:06 pm, edited 1 time in total.
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: Implement (PCB)

Post by gerryg400 »

Jezze, you took 6 minutes. Too slow !
If a trainstation is where trains stop, what is a workstation ?
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: Implement (PCB)

Post by Jezze »

Can I blame my tiny keyboard? =)
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Implement (PCB)

Post by AJ »

Locked.

@op: please do your research and also read the forum rules.
Locked