User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 456,475 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,770 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 788 | Replies: 22
Reply
Join Date: Jun 2008
Location: WA, USA
Posts: 913
Reputation: Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough Alex Edwards is a jewel in the rough 
Rep Power: 5
Solved Threads: 93
Alex Edwards's Avatar
Alex Edwards Alex Edwards is offline Offline
Posting Shark

Re: Help with implementing a Loader[Operating Systems]

  #21  
Sep 21st, 2008
Oh I'm sorry. I understand now.

I see that you want to tokenize the actual control cards to determine their size, etc and then collect additional information for the actual control-cards (such as their data sections and the attributes for the data sections).

I thought you needed an easier means of grouping the data, but I misunderstood at first.

It's still possible to use my first suggestion, however you will need to determine what defines a control card. For example, will all sizes of user programs be 16+ in hexadecimal? Is the data reliably grouped in the .txt file?

I can see of another way of this being done, but I need more information about how the information is organized in the .txt file (consistency, etc) and if there is a specific format for user programs (do they always have a number at the end of their name to identify them?), and do Data section always start with the word Data?
Reply With Quote  
Join Date: Jan 2008
Posts: 56
Reputation: orangejuice2005 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
orangejuice2005 orangejuice2005 is offline Offline
Junior Poster in Training

Re: Help with implementing a Loader[Operating Systems]

  #22  
Sep 28th, 2008
Yes thats what i've been trying to do. And now that i've gone deeper into the Operating system structure, i need to interconnect these 3 classes am working on. PCB, Hardware Layer and Loader. The PCB takes and stores process info(control card) and is stored in a data structure of choice. While the Hardware layer, defines the memory and disk block and the loader reads in the user program and strips of the control card then stores the process data in disk/memory.

I'll just attached everything that i've done so far and a sample program text file we'll be getting so u'll know the format.

I havn't done the short term and long term scheduler yet or the CPU...but i wanted to finish this before the weekened is over with and start on those as soon as possible. Thanks again for seeing through this with me.
Attached Files
File Type: txt DataFile1-old.txt (1.7 KB, 1 views)
File Type: java Hardware_Level.java (1.3 KB, 2 views)
File Type: java OS_Loader.java (922 Bytes, 2 views)
File Type: java PCB.java (3.1 KB, 1 views)
Reply With Quote  
Join Date: Jan 2008
Posts: 56
Reputation: orangejuice2005 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
orangejuice2005 orangejuice2005 is offline Offline
Junior Poster in Training

Re: Help with implementing a Loader[Operating Systems]

  #23  
Sep 29th, 2008
Crap am not sure if am allowed to this do but my thread is getting lost amongst other (solved) threads.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Java Forum

All times are GMT -4. The time now is 2:35 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC