freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于net的超市管理系統(tǒng)的設計與實現(xiàn)畢業(yè)論文-資料下載頁

2025-06-27 18:09本頁面
  

【正文】 nt processing. Simply storing the data is not enough, however. A typical puter system, even a small one, can have dozens of disks and tapes, each holding data for dozens of different applications. For any given application, one and only one set of data will do. We must be able to store, locate, and retrieve the specific data needed by a given program. That is the concern of data management.Accessing DataImagine a single diskette containing several programs. For a particular application, only one of those programs will do. How is a given program selected, loaded, and executed? In chapter 6, we learned that the operating system, responding to a user39。s mand, reads the disk39。s index, searches it for the requested program name, extracts the program39。s track and sector address, and issues primitive mands to read it into main memory. Later, following a RUN mand, the program is given control of the processor. Accessing data presents a similar problem. A single diskette can hold data for several different applications. For a given application, one and only one set of data will do, and finding the right data is much like finding the right program. There are differences between accessing programs and accessing data, however. When a program is needed, all its instructions must be loaded into memory. Data, on the other hand, are typically processed selectively, a few elements at a time. Thus, it is not enough merely to locate the data。 we must be able to distinguish the individual data elements, too.Data Structures The key to retrieving data is remembering where they are stored. If the data elements are stored according to a consistent and well understood structure, it is possible to retrieve them by remembering that structure. The simplest data structure is a list. For example, data for a program that putes an average might be stored as a series of numbers separated by mas . The mas distinguish the individual data elements. Most programming languages support a more plex data structure called an array . Each array element can hold one data value. Each element is assigned a unique identifying number of numbers, and individual data elements can be inserted, extracted, or manipulated by referencing those an array has been filled, it can be written to disk, tape, or any other secondary medium, and later read back into memory for processing. Consider a program that generates name and address labels. For each label, we need a name, a street address, a city, a state, and a zip code. If we needed only a few labels we might store the data in a list, but separating the elements would soon bee tedious. An option is to set up an array of names and addresses, with each row holding the data for a single label. The only problem is that the entire array must be in main memory before the individual elements can be accessed, and main memory space is limited. even with an array, we could generate relatively few labels. A better solution is to organize the data as a file . All puter data begin as patterns of bits. On a file, the bits are grouped to form characters. Groups of characters, in turn, form meaningful data elements called fields. A group of related fields is a record。 the file is a set of related records. For example, in a name and address file, and individual39。s name is a field. Each record holds a plete set of data for a single individual (a name, a street address, and so on). The file consists of all the records. The data in a file are processed record by record. Normally, the file is stored on a secondary medium such as disk. Programs are written to read a record, process its fields, generate the appropriate output, and then read and process another record. Because only one record is in main memory at a time, very little memory is needed. Because many records can be stored on a single disk, a great deal of data can be processed in this limited space. Locating Files Imagine a file stored on disk. The first step in accessing its data is finding the rile. The task is much like finding a program, but there are differences. Following a mand such as LOAD or RUN, programs are loaded by the operating system. Data, on the other hand, are processed by application programs, in the context of a program39。s logic. Typically, just before the data are required, the program asks the operating system to open the file. Each file has a name。 the open logic reads the disk index, searches it by name, and finds the address of the first record in the file. Locating Records Once a file has been located, the process of accessing its records can begin. When a program needs input data, it reads a record。 when it is read go output results, it writes a record. Note that these instructions deal with selected records, not with the entire file. We open files. We read and write records. Let39。s examine the data accessing process more closely. A programmer views data logically, requesting the next record, or the name and address for a particular customer. The data are stored on a secondary medium such as disk. To access a record physically, the disk drive must be given a set of primitive mands: seeks, reads, and writes. The programmer thinks in terms of logical I/O. The external device stores and retrieves physical sectors。 it thinks in terms of physical I/O. There must be a mechanism for translating the programmer39。s logical requests to the appropriate physical mands. On small puters, much of the logic is found in the operation system39。s input/output control system。 on larger machines, access methods are used. Increasingly, the programmer39。s logical data request is translated to physical form by a database management system. The Relative Record Concept How does software, be it operating system, access method, or database software, find specific records in a file? The key to many storage and retrieval techniques is the relative record number. Imagine a string of 100 records. Number the first one
點擊復制文檔內(nèi)容
教學課件相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1