Page 1 of 2

I need help in MultiTasking

Posted: Thu Apr 21, 2005 6:35 pm
by mar-rih
Peace upon you...

Thanks for this fine forum...

I am devloping an OS and i want to learn the essential in multitasking and Process managment,,

can any one help me or guid me to reight site about this subject pleas...

i am sorry for bad language...

Re:I want help in MultiTasking

Posted: Thu Apr 21, 2005 8:35 pm
by Brendan
Hi,
mar-rih wrote:can any one help me or guid me to reight site about this subject pleas...
Start here:
http://www.osdev.org/osfaq2/

Go to the "Scheduling" part and read it all. After that let us know if you've got any specific questions :)..


Cheers,

Brendan

Re:I want help in MultiTasking

Posted: Fri Apr 22, 2005 3:05 am
by slash
you can also check out "multitasking howto" at

http://www.osdever.net/tutorials/multitasking.php?the_id=84

Re:I want help in MultiTasking

Posted: Fri Apr 22, 2005 5:38 am
by mar-roh
Thanx for you replies...


I had browsed this pages.....

1- i want detail information about TSS discriptor and what it is relation to GST and IDT...?

2- Waht is the diffrent betwine the hardware and software switching ?

3- can any one enumrate the steps for make OS is multitasking...

4- if i want to make multitasking OS. do i been forced to use
the LDT tables, and if the answer yes, how???

Re:I want help in MultiTasking

Posted: Fri Apr 22, 2005 5:50 am
by Candy
mar-roh wrote: 1- i want detail information about TSS discriptor and what it is relation to GST and IDT...?
TSS is explained in the intel manuals, referenced in the book thread in this forum.

PS: we commonly use the western form of politeness, which means that saying "want" is somewhat forbidden in a question. Most questions start with "could you tell me ..." or "can you help me with ... ".
2- Waht is the diffrent betwine the hardware and software switching ?
With hardware switching each switch doesn't take any instructions from you but happens automatically, after setting it up. With software switching you control every bit of it.
3- can any one enumrate the steps for make OS is multitasking...
That's the entire point of the FAQ. Get the IDT working, interrupt handling somewhat working and then implement basic multitasking. Read the FAQ for each aspect mentioned here.
4- if i want to make multitasking OS. do i been forced to use
the LDT tables, and if the answer yes, how???
No.

Re:I want help in MultiTasking

Posted: Fri Apr 22, 2005 5:50 am
by Pype.Clicker
mar-roh wrote: Thanx for you replies...


I had browsed this pages.....

1- i want detail information about TSS discriptor and what it is relation to GST and IDT...?
Get the intel manuals and check the "multitasking" chapter
2- Waht is the diffrent betwine the hardware and software switching ?
HTS is based on TSS and let the CPU do the job of storing/writing its state from/to a system location while STS requires you to save state and restore it "manually". It is also known as "stack switching" since most of the job consist of switching from one stack to another.
3- can any one enumrate the steps for make OS is multitasking...
that's more or less what BI does in the osdever article!
4- if i want to make multitasking OS. do i been forced to use
the LDT tables, and if the answer yes, how???
no, you're not.

Re:I want help in MultiTasking

Posted: Fri Apr 22, 2005 6:05 am
by distantvoices
mar-rih, please be so kind and go throu the tutorials & the FAQ once. If you haven't understood at once, reread. Then pick what is not clear and give us exact questions to chew on. *gg*

Easy riddles ain't funny, know ya?

BTW: my tutorial gives you the bare nitty gritty of what you'd need to do in order to have your OS do some basic multitasking with stack switching. You need of course memory management, linked list management for your TCB's (==Task Control Blocks), and the very basic stuff of a proper installed global descriptor table as well as a sound Interrupt descriptor table - provided with ISR's. there *are* prerequisites which I presume in that article in order to concentrate on the multitasking stuff.

Read throu it and if you want to know something special, bug us.

Re:I want help in MultiTasking

Posted: Fri Apr 22, 2005 6:58 am
by mar-rih
Again i thanx you for your replies...
i am verry sorry about my forbidden quistion.

My primary Lan is not english, i am from syria arabia and y primary lang is arabic.

i am studing Informatic Engineering in Aleppo Faculty, and my Gradute Project is arabic OS.
so my English lang is not good, so forgive me about the mistakes....
______

As regards of OS_Faq Toutrial i quickly read it, and i promis you to reread it agin..

Peace upon you.

Re:I want help in MultiTasking

Posted: Fri Apr 22, 2005 12:53 pm
by Curufir
The members of the board like to help people with their problems, but we cannot provide answers if the questions are not specific enough.
1- i want detail information about TSS discriptor and what it is relation to GST and IDT...?
Detailed information on the structure of a TSS descriptor is contained in the Intel processor manuals (You can find a general description here: http://www.sandpile.org/ia32/tss.htm). A TSS descriptor is stored in the GDT, it has nothing to do with the IDT.

***
My primary Lan is not english, i am from syria arabia and y primary lang is arabic.
English is not the primary language for many members of this board. However english is the most widely used language in computing, so a lot of the documentation and tutorials you find will be written in English.
i am verry sorry about my forbidden quistion.
If we can understand you and you can understand us then the details do not really matter. The members of the board will sometimes point out elements of english that seem out of place or incorrect in order to help people improve their english.

E.g.

"I want..." is used as an imperative (A command), not as a polite request.

"Peace upon you" is an ordinary arabic salutation, but sounds very formal in english. "Hello" is a sufficient salutation in an english forum.

***

Welcome to the board.

Re:I want help in MultiTasking

Posted: Sat Apr 23, 2005 5:18 am
by distantvoices
I bet it's something in the wake of "Salam Alejkum" he want's to express with his salutation. *gg*

Further, I daresay, he has not sooo much training and getting-around with english boards, so I don't take the " I want " personally. *gg* Well, I'm in a kind mood today.

Re:I want help in MultiTasking

Posted: Sat Apr 23, 2005 7:00 am
by Candy
beyond infinity wrote: Further, I daresay, he has not sooo much training and getting-around with english boards, so I don't take the " I want " personally. *gg* Well, I'm in a kind mood today.
Not taking it personal either, just trying to help him get around on west-style boards. You know, the ones in the west of the world.

Re:I want help in MultiTasking

Posted: Sat Apr 23, 2005 7:56 am
by Pype.Clicker
Curufir wrote: "Peace upon you" is an ordinary arabic salutation, but sounds very formal in english. "Hello" is a sufficient salutation in an english forum.
Formal ? hm. I found that rather refreshing ...

Re:I need help in MultiTasking

Posted: Sat Apr 23, 2005 8:15 am
by mar-rih
I bet it's something in the wake of "Salam Alejkum" he want's to express with his salutation. *gg*

OKKKKK :D

i really mean that


P[center][/center]eace Upon you == Salam Alikoum (in arabic )

yes...

This board is the second west board i register in
and i hope to learn a lot of thing form you....

in addition of OS design

thanx for your replies again..

My name is Marwan.

Re:I need help in MultiTasking

Posted: Mon Apr 25, 2005 7:18 am
by distantvoices
@candy, of course. Me lives in a west-european country too *chuckle*

btw ... 999 posts with this one. I shudder on the thought of that what comes with the next one *rofl* Maybe I have to give out beer!

Re:I need help in MultiTasking

Posted: Mon Apr 25, 2005 7:46 am
by aladdin
[offtopic] yesss ... another arabic in this forum :D [/offtopic]