How Things Works

Pages: 1, 2
free web hosting
Free Web Hosting > Computers & Tech > Operating Systems

How Things Works

vicky99
Hello freinds
I always wonder How Operating System Works. I tried to figure it out but failed. How they managed to interact with hardware using some commands? How OS were built? Which languages are used? Which was the first OS and who built it? And one question always trouble me is, when we create data or file or might import it from other storing devices or from internet, what happens to these data when we delete them? Where do these go? According to some these stay in hard drive. If it is so after some days there will not be any space in our hdd.

Reply

Omkar™

Great question, dude! And I'll be much too glad to answer it..

What is an Operating System?
An operating system is basically a program itself, which 'controls' the computer. You can say that it is a 'group of programs' that help you to interact with your computer. You see, the computer understands the binary language (0's and 1's). An OS does the job of a translator, just as a translator would translate English to Japenese when you talk to the people there in Japan, the OS translates your commands into Binary language so that the computer understands them and obeys your commands. Interacting with hardware is a complex process, for which I will write a post only after a little research myself!

How were OS built and what were the languages used?
The very first personal computer, as you know, was just a Pentium 100MHz processor, which couldn't do much really! The very first OS developed for the personal computer was the Disk Operating System (DOS), more commonly known as Microsoft's MS-DOS (although there were other DOS(s) like FreeDOS etc.). I really have no idea how Mr.Gates developed that awful OS. But then came 'Unix', which was written entirely in C/C++. But later on, when GUI was introduced publicly by Microsoft, its first OS with a GUI, i.e.Windows 3.1 was realased, after which the Windows family monopolised the software market.

Where do things go when we delete them?
When you delete a perticular file(s) manually from your OS, then it appears to be erased from the hard disk (When you see it in recycle bin (Windows only), it is not deleted, when you empty the recycle bin, it appears to be so). But you have heard right, it still remains in the hard disk. But ONLY till that space occupied by the 'deleted' file is not requested by another file. In order to delete a file permanently from your hard disk, the process is called 'shredding', which physically erases the file from the hard disk. This can be a benifit, if we wish to recover an accidentally deleted file, or a nuisance, if we care about privacy.

I would like to thank you for revising my computer history and fundamentals, which I wuold have forgotton if I wouldn't have written this post!

Kindly excuse me if some part of the information mentioned above is unauthentical, because I do not hold a PhD. in computer history!!
-Omkar Ekbote

 

 

 


Reply

yeh
Definitely not an authority on hardware, but have some knowledge. This would help you while waiting for better answers.

QUOTE
And one question always trouble me is, when we create data or file or might import it from other storing devices or from internet, what happens to these data when we delete them? Where do these go? According to some these stay in hard drive. If it is so after some days there will not be any space in our hdd.


The data does stay in the hard drive until it is written over by new data. Your OS has sort of a table to keep track of the data and their location in the hard disk. When you normally delete, you just delete the entry in the table. The data is still intact in the hard disk. That is why you can recover normally deleted data through some software.


QUOTE
Which languages are used?


I think they use C or C++.


QUOTE
How they managed to interact with hardware using some commands?


There is something sort of called interrupt vectors. There is a fixed amount of them and each of them does certain things. Not just OS can interact with hardware. If you are knowledgable enough, your software can interact with hardware too.

Reply

nikhil
Yes C/C++ is used to write OS because these two langauges are dam fast ..[/color]The windows 95 was written with C in 16 million lines (not a small programat all) ...
Your Interrupt theory is correct one can can interact with hardware with interrupt .
Actually whenever we press a key an interrupt is send to microprocessor which interrups its work starts new work after completing that work it resumes its work (thats why named so) same interrupt can be generated by a software called software interrupt ,
eg: interrupt no X023 is generated by pressing Esc key


Reply

vicky99
I should thank everyone at the outset for answering my query. It would be very kind of you guys tell me in details about interrupt vectors. Why C and C++ are used to create Operating System? Why not JAVA or some other language? One more question, when first OS was created how they used C or C++? If there was no OS how did the install C or C++? Generally we need to install Turbo C to begin programming.


Reply

yeh
QUOTE
Why not JAVA or some other language?


Actually, there is not that many "heavy duty" programming languages around. Besides C, C++, Java and maybe C#(have no experience in it, but should be able to do quite a lot of stuff with it) the rest of the programming languages are used for certain tasks. Perl, PHP are basically for web programming. Visual Basic is more for ease of use. And then you have Lisp and other AI programming languages that very few people know.

I don't think there is any OS today that was created with Java. Your Java program actually needs to run on top of a Virtual Machine(VM). And if I am not mistaken, the VM is actually created with C or C++.

Reply

mastercomputers
Where did most this information come from?

The earliest of Operating Systems, existed in the 1950s and definitely was not created with C since it hadn't even been developed yet (1970s, also the time when the UNIX kernel was changed to C). DOS did not even exist at this stage.

Most Operating Systems were created in Machine Code (Binary/Assemby) and was specific for the CPUs that it ran on so it was not portable across different architectures. All hardware of the computer had to be controlled by your program, which is why the only users for computers had knowledge in Programming.

Nowadays you would find operating systems are created in higher level languages, although they still use ASM for bottleneck optimisation and speed improvements. C and C++ are languages that would be used in modern operating systems, due to it's level of control, being able to be a low level language and still make use of the higher level. Other languages could achieve similar results but you'll know whether it's suitable or not by whether it can be low level or not. There are device drivers still developed in ASM.

I agree that MS-DOS was the first operating system for "personal" computers (IBM PC), being easier to use. It however was developed for the 8086 (80x86)/8088 which is not 100MHz but more like 5MHz or 10MHz. Also Pentium was the successor to the 486 processors, which the 486DX4 and Overdrive could run at a clock speed of 100MHz but was not really stable. I still have an Overdrive Server computer with a 5MB SCSI hard drive which still runs, also got a few 286s and 386s as workstations, but more historical than for use.

When deleting files from your harddrive, basically what happens is the operating system writes the data area with a certain symbol which tells it this area has been deleted and can be written over, it does not remove it fully but it can calculate how much space you have freed up with it. So even though you may think it's taking up space, the operating system knows that it can write over it, so it's considered free space to the operating system.

Also there was Windows Version 1.0 which was a GUI based operating system, but popularity only came in Windows 3.11 which gave better networking, anything before this was quite buggy to even consider.

Cheers,

MC

Reply

Chesso
Windows was written in C++ beause it is not enviroment specific. Languages like Borland's Delphi and Visual Basic are for purely programming under Windows.

How hard disks and Windows work is fairly simple to explain. Windows stuffs crap on your hard disk, when you delete it Windows will simply mark these areas as *writable*. So when you need to fill some more space in it may overwrite deleted data. Hence why it is sometimes possible to recover deleted data.

Reply

vicky99
Dear Friends
I asked u questions regarding Operating Systems and How data gets deleted. Now I want to ask you some more basic questions. Frist of all I would like to know how data is saved rather written in hard disk.What type of material is used to biuld hard drives? Whether magnetic medium such as VHS tape are used?
How data is written in CD by Cd writer?What is the difference between CD R And CD RW?



Reply

Chesso
Well with most hard drives i'm pretty sure they are magnetic though other possibilities are either already in play or are being explored as is to be expected.

I'm not sure on the technical details and differents of CD writers with CD-R's and CD-RW's but basically it uses a laser to read and write from the disc (I think their called optical or some such?), And the difference between CD-R and CD-RW is that CD-R's can only be written once and usually last longer where as CD-RW discs can be written to multiple times but usually dont last as long.

If anyone knows more indepth about how this all works I would be interested too, I always love hearing about how all this stuff works.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Similar Topics

Keywords : things, works

  1. A Few Thoughts On Freelance Programming
    Some things I've learned along the way. (9)
  2. My Works
    (1)
    Hello, I have been programming games for over a year now, so I think it would be worthwhile for me
    to post a topic showing as much as possible of my works, First on exhibit, Tails Xtreme. A game I
    started in February 2007. Never completed, like most of my games. Here is a screenshot: Now
    I'll move onto my original attempt at recreating cancelled sega saturn game, Sonic Xtreme.
    Poorly made level with improperly positioned walls. Dates from late march, 2007. Below is another
    screenshot: What you see there is the red sands level. Looks a lot nicer than the previo....
  3. Asking For A Free Hosting Web
    i wanna asite for doing things for to publish my tawn (3)
    here iam asking for a free web hosting like: karwal.astahost.com the user name : Stehdalmed and
    the passse word : almajnounmed hopte to get it soon ....
  4. Javascript Help Needed : Alert(z) Works Fine But Document.write Not
    please (2)
    hi all, I am facing problem in my javascript, any kind of help would be apreciated CODE
    function basicFiles(){ //var Z = "";             for (i = 0; i <
    document.Form.regionlist.options.length; i++) {                 var x =
    document.Form.regionlist.options[i].value;                 var y =
    document.Form.regionlist.options[i].text;                 var Z =  "regions" +
    "[" + x + "]" + " = " + y + ", ";
                    alert(Z);             }                   } th....
  5. Can't Select Database =?
    It works on my home PC (3)
    Hey! I've made a register script. It works on my home pc, but when I upload it to astahost,
    it don't work =/ This is the error meesage I am getting: Warning: mysql_num_rows(): supplied
    argument is not a valid MySQL result resource in /home/feelay/public_html/regcheck.php on line 35
    You Could Not Register Because Of An Unexpected Error. Error: No database selected I know the
    error is from the database.. But I don't know exactly how the astahost database works.. My
    username is feelay_myname i think, and the databasename should be feelay_thedatabasename....
  6. Things I Have Learnt This Week
    (2)
    as i have got school holidays i have been able to cook eggs and cook rice as well as meat lol my
    next thing i want to learn is how to wash the dishes as i am useless with this i find it too messy
    lol....
  7. Gmail 2.0
    Do you think it works fast and smoothly ? (20)
    if you haven't tried it yet, you can try it now https://mail.google.com/mail/?ui=2 I'm not
    sure you will like it or not, it isn't perfect like the older version This new version take
    longer time for the first time loading, but when your browser has cached, it faster the interface
    doesn't change much, but if you notice you can see it works more smoothly than the older (not
    your browser, your CPU usage will always very high while using this new Gmail version) the most
    liked thing in this new version in my opinion is I can know who has sent mail to me dir....
  8. People Doing Stupid Things...
    (2)
    Hi @ all... knows anyone here theinternetpatrol.com ? /wink.gif" style="vertical-align:middle"
    emoid=";)" border="0" alt="wink.gif" /> I found this story:
    ----------------------------------------------------------------------------- There are all kinds
    of people doing stupid things all the time. But some take the cake. Such as making a death threat
    against an officer who is investigating you. You have to admit, as people doing stupid things go,
    that’s pretty darned stupid. But, of course, when I explain that it was a spammer who made the
    death threat, well, it begin....
  9. Remote Avatar In Phpbb3
    Now it works ! I got it running with RC7 (0)
    I wanted to have a single avatar hosted on a web server. And I wanted to use it on each phpbb3 forum
    I install somewhere, simply adding my profile URL in my user settings. I got it running with PHPBB3
    RC7. It could have worked with previous versions, but only today I found the trick. The trick is
    really simple. The avatar settings failed with the message "unable to obtain the remote image size".
    And the message is rather self-explanatory : this meant that, probably for security reasons, the
    webhost refused the query asking for the image size. So, the trick is simple, re....
  10. Do These Things Immediately After Installing Ubuntu
    (0)
    Article shows 13 things to do, programs to install immediately after installing Ubuntu 7.04 Feisty
    Fawn to make it rock. http://linuxondesktop.blogspot.com/2007/05...ubuntu-704.html
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  11. 10 Things You Probably Didn’t Know About Php
    (5)
    This is an article which is most likely targeted at newcomers, about SQL injection, proper
    datatyping, query optimization and similar problems.
    http://blog.rightbrainnetworks.com/2006/09...know-about-php/ 10 should be the most important.
    Poorly written scripts can lead to an SQL injection attack with little effort from the wrongdoer.
    Also, be sure to test your scripts well. Put yourself in the place of a hacker, it is better you
    find any flaws before they do. You are going to have to properly validate user input regardless. And
    magic quotes have to do with the way th....
  12. How "light Saber" Works
    Yes!! the StarWars Light Saber (2)
    Was checking out www.howstuffworks.com when i found this one... Click Here to to find out how
    Light Sabers Work Hope you like it.....
  13. Some Odd Things With Html Tables
    (1)
    OK well this is making me mad. Maby it is the fact that I am in the middle of an awsome php project
    or it is because I am being outsmarted by html. Anyway I have this real odd thing occuring while I
    am programming. It is a little hard to explain, but when I put RE or RE: in a table cell, the
    next cell has an offset. Here is an example: Example . Now I have tried changing all the vars (for
    css ect) I keep getting the same error. Here is the code I used (simplified for post but the error
    still occurs): CODE <style type="text/css"> .var{ width: 600....
  14. Xiangqin's Siggy Works
    comments pls and other advice. tnx =) (0)
    these are some of my works... hmmm.. almost for koreans series... i've used these having the
    codename:limecrafted as to what i used during college... feel free to comment out.. thanks so
    much!! my audition siggy.. siggy i made for a player in audi.. ------ korean siggies
    ----- ....
  15. Things I Learned From Watching Happy Feet 8 Times
    (20)
    1. Mumble sounds very funny in Quebec French 2. Creators messed up the seasons in the movie in
    Antarctica 3. You miss tons of things watching the movie without subtitles 4. Ramon and Lovelace
    are the same person, just that Robin Williams can have 2 very different voices. 5. Baby
    Mumble's voice actor is the same one from Rugrats for Tommy. 6. Steve Irwin had the crappiest
    role in the final movie, only 2 - 3 lines. They should've used his original role. 7. Characters
    were actually speaking during the Blizzard scene, turn on your subtitles!! 8. Baby M....
  16. One Click To Copy Script
    Works in IE6 but not any other Browsers (0)
    As a project to "boilerplate" some text, I had this idea of making a couple of textareas in html and
    having a single click on the input button copy the contents to the clipboard and then pasting the
    text into another blank textarea. Several textareas would contain the different pieces of text and I
    would then be able to 'assemble' the full text into the 'blank' textarea and then,
    of course, copy this entire piece to the clipboard and migrate it to the final spot for copying.
    Anyways, BuffaloHELP had the basic code for the javascript, but it seems that thi....
  17. Internet Explorer 7 Problem
    Works fine in Firefox! (Shocker) (8)
    Hey, I'm helping my mom with one of her web projects for class and I've noticed a pretty
    big problem (no thanks to IE7) that cost her a few points. It won't load an image of an email
    icon, however, Firefox will load and display it properly. Here's the line for the image: CODE
    <img src="nationalparks/images/email.gif" width="99" height="100"
    border="0" alt="Email" /> Also, IE7 complains about some ActiveX content,
    but this is just a basic page and NO JavaScript, NO Java applets, NO ActiveX of any ki....
  18. Populis.com Really Disappointing
    I tried populis.com, they do very bad things. (4)
    I tried populis.com And I am very angry /mad.gif" style="vertical-align:middle" emoid=":angry:"
    border="0" alt="mad.gif" /> The offer your own domain for free. They verify that your domain is
    free. You reserve the domain. Now you have your own page on firstname.yourdname.com Very nice, you
    have some megs, and you have ftp for utploading your html files. Unfortunately, they server
    ftp.populis.com is never available : timeout waiting for connection at any moment of the day !
    So, your domain name is reserved, you cannot buy it any more, but your site is unreachable b....
  19. Sitemaps.org
    Believe it, Google, MSN and Yahoo works together. (1)
    Believe it, the search industry giants Google, MSN, and Yahoo works together to bring us a new SEO
    tool, sitemaps.org , this is a webmaster protocol that is attempting to introduce a web standard
    for these documents. You know it, sitemaps are simple XML documents that webmasters use on their
    sites, this documents simply tells search engines which pages on their sites are available for
    crawling, remember, this doesnt means that your sites are included in search engines but it can
    helps search engine web crawlers do a better job when crawling your website. For more inf....
  20. Questions On Islam
    Some things I don't understand about the religion (10)
    I understand now. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" />....
  21. How Ip Multimedia Subsystem Works?
    (1)
    The IP Multimedia Subsystem (IMS) is the key element in the 3G architecture that makes it possible
    to provide ubiquitous (i.e. Being present everywhere at once) cellular access to all the services
    that the Internet provides. IMS Vision: Picture yourself accessing your favorite web pages,
    reading your email, watching a movie or taking part in a video conference wherever you are by simply
    pulling a 3G hand held device out of your pocket. This is the IMS vision. ....
  22. Get Things Done?
    (7)
    hotscripts.com almost everyhings been done, maybe even better than you could do. they have
    basically everything because everyone uses it. I got a very nice portal for my website, i submit a
    few scripts of my own like random php scripts and some rating systems for different things
    (pictures, site total, with text) check it out....
  23. Image Works With Php And Gd
    (3)
    Hi I have a 1 Big map. What i want is that the user will enter the latitude and longitude. the
    script will show that location in the image. I know how to convert Image X,Y Coordinates into
    Latitide and Longitude and vise versa. But there point is that the image is 1000x1000 wide but i
    want to show only the particular region of that latitude / longitude in 300x300 image. means that
    the PHP script will CROP wht Image (1000x1000) to 300x300. That way, the script will be shoing the
    part of an image, not the whole image. please help !!....
  24. Greetings!
    AKA Procrastinating writer attempting to force herself to get things d (3)
    Hello, everyone. You can call me NigaiAmai Yume. Or BitterSweet Dreams. Or PaperDolls. Actually, I
    go by a lot of names; I've decided to stick with my (to be) web-site name in the forums to
    streamline things. I'll answer to just about anything that's obviously directed at me and
    not offensive. ^-^ Comes from being named Mary-Melissa in real life, I suppose. ^-^ Why I am here:
    As stated above, I am a writer. And by writer, I mean I have 15 long* works**, mostly fantasty,
    developing in my head. * By long, I refer to anything with a decently organized plot t....
  25. 12 Things You Didn't Know About Windows XP
    WindowsXP hidden features (5)
    Copied from http://forums.aspfree.com/windows-os-15/20...-xp-102029.html QUOTE You've
    read the reviews and digested the key feature enhancements and operational changes. Now it's
    time to delve a bit deeper and uncover some of Windows XP's secrets.. 1. It boasts how long
    it can stay up. Whereas previous versions of Windows were coy about how long they went between
    boots, XP is positively proud of its stamina. Go to the Command Prompt in the Accessories menu from
    the All Programs start button option, and then type 'systeminfo'. The computer w....
  26. An Fighting Game Mmorpg?
    Are there any such things? (15)
    Are there any mmorpgs out there that are like... fighting games? By fighting, I don't mean the
    rpg style fighting, but I mean the mortal kombat or dbz budoukai style. I think that if this genre
    doesn't exist, that it'd be really interesting. Has anyone seen any anywhere? If not,
    I'm going to make one ^_-. The only problem is finding the proper 3d mmorpg engine... ....
  27. Cpanel Works Slowly
    Why is cPanel so heavy to access? (7)
    Hi, I'm trying to configure my cPanel, but of some kind of reason does it works extremly slowly
    and it leak the icon images. My Internet connection is standard adsl, and when I had dealup
    doesn't I had any problems or trouble, then only thing that I've been changed is my Internet
    connection. Please help me, Cheers! Jens....
  28. Neem: A Natural Treatment That Works?
    Neem trees - what scientists have found (12)
    One of my friends just sent me a link about the neem tree, which is the source of many cures and
    treatments in India (where he's from). We started talking about dental problems, which is one of
    the things that neem trees can treat, when he started telling me about the other things that
    scientists are discovering. Would you believe, for example, that extracts from this tree can be up
    to 100 percent effective as birth control? Or that it repels athlete's foot, psoriases, herpes,
    etc.? Yeah - I wouldn't believe it either if it weren't for the fact that sci....
  29. Xenogears Vs Xenosaga
    yeah Y'know how it works out (4)
    Xenogears vs. Xenosaga. Xenogears had a great story good characters and a deep involving plotline,
    it is the fifth installment to the overall story to the Xenoseries. I think this is the best out of
    them all, Xenosaga has let me down time and time again, don't get me wrong I like the games a
    lot but Xenosaga 1 & 2 just don't really seem to live up to Xenogears, the games might be up to
    60 hours of gameplay but most of it is FMV telling the story. /tongue.gif' border='0'
    style='vertical-align:middle' alt='tongue.gif' /> The postive side of Xenosaga it is t....
  30. The Bad Side Of .....google
    things you never heard (50)
    i have just came accross this website, and it shows all the truths and theories about google. im
    shocked that google have never deleted anything at all "since day one".! this can mean when
    you delete anything on the gmail server it aint actually deleted. it is still saved on the google
    server. it also states that google actually atmitted to the savings of all documents! also
    theres cookies in your browser, so if you make a search on their search engine it tracks down what
    you search for and saves it! is the saying and reality tv shows coming true... big br....

    1. Looking for things, works

Searching Video's for things, works
Similar
A Few
Thoughts On
Freelance
Programming
- Some
things
I've
learned
along the
way.
My Works
Asking For A
Free Hosting
Web - i
wanna asite
for doing
things for
to publish
my tawn
Javascript
Help Needed
: Alert(z)
Works Fine
But
Document.wri
te Not -
please
Can't
Select
Database =?
- It works
on my home
PC
Things I
Have Learnt
This Week
Gmail 2.0 -
Do you think
it works
fast and
smoothly ?
People Doing
Stupid
Things...
Remote
Avatar In
Phpbb3 - Now
it works
! I got
it running
with RC7
Do These
Things
Immediately
After
Installing
Ubuntu
10 Things
You Probably
Didn’t Know
About Php
How
"light
Saber"
Works -
Yes!!
; the
StarWars
Light Saber
Some Odd
Things With
Html Tables
Xiangqin'
;s Siggy
Works -
comments pls
and other
advice. tnx
=)
Things I
Learned From
Watching
Happy Feet 8
Times
One Click To
Copy Script
- Works in
IE6 but not
any other
Browsers
Internet
Explorer 7
Problem -
Works fine
in
Firefox!
(Shocker)
Populis.com
Really
Disappointin
g - I tried
populis.com,
they do very
bad things.
Sitemaps.org
- Believe
it, Google,
MSN and
Yahoo works
together.
Questions On
Islam - Some
things I
don't
understand
about the
religion
How Ip
Multimedia
Subsystem
Works?
Get Things
Done?
Image Works
With Php And
Gd
Greetings
3; - AKA
Procrastinat
ing writer
attempting
to force
herself to
get things d
12 Things
You
Didn't
Know About
Windows XP -
WindowsXP
hidden
features
An Fighting
Game Mmorpg?
- Are there
any such
things?
Cpanel Works
Slowly - Why
is cPanel so
heavy to
access?
Neem: A
Natural
Treatment
That Works?
- Neem trees
- what
scientists
have found
Xenogears Vs
Xenosaga -
yeah
Y'know
how it works
out
The Bad Side
Of
.....google
- things you
never heard
advertisement




How Things Works



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE