















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
File and I/O Management, File Operations, File Allocation Methods, Introduction to Android Operating System, Android Development Framework, SmallApplication Development using Android Development Framework
Typology: Study notes
1 / 23
This page cannot be seen from the preview
Don't miss anything!
1.Explain Directory Structure? A Directory is the collection of the correlated files on the disk. In simple words, a directory is like a container which contains file and folder. In a directory, we can store the complete file attributes or some attributes of the file. There are various types of information which are stored in a directory:
1. Two-Level Directory Two-Level Directory is another type of directory structure. In this, it is possible to create an individual directory for each of the users. There is one master node in the two-level directory that include an individual directory for every user. At the second level of the directory, there is a different directory present for each of the users. Without permission, no user can enter into the other user’s directory. 2. Tree-Structured Directory In a tree directory structure, except root directory, every directory or file has only one parent directory. So, there is a total separation between the users which provide complete naming freedom. Here, if a user wishes to access another users file, it has to go through two or more directories. 3. Acyclic-Graph Directory Structure This problem can be solved by the acyclic-graph directory structure. As this directory structure allows a directory or a file to have many parent
directories. So, a shared file in a directory can be pointed by the other user directories who have access to that shared file using the links. In the diagram below you can see that the directory having file F7 and F8 have two parent directories.
2. Write about File Operations? A file is a collection of logically related data that is recorded on the secondary storage in the form of sequence of operations. 1. Create operation: This operation is used to create a file in the file system. It is the most widely used operation performed on the file system. To create a new file of a particular type the associated application program calls the file system. 2. Open operation: The user wants to open a file, it provides a file name to open the particular file in the file system. 3. Write operation: This operation is used to write the information into a file. 4. Read operation: This operation reads the contents from a file. A Read pointer is maintained by the OS, pointing to the position up to which the data has been read.
1. Contiguous File allocation In contiguous file allocation, the block is allocated in such a manner that all the allocated blocks in the hard disk are adjacent. Assuming a file needs 'n' number of blocks in the disk and the file begins with a block at position'x', the next blocks to be assigned to it will be x+1,x+2,x+3,...,x+n- 1 so that they are in a contiguous manner. Advantages - It is very easy to implement. - Memory access is faster. - It supports sequential as well as direct access. 2. Linked File Allocation The Linked file allocation overcomes the drawback of contiguous file allocation. Here the file which we store on the hard disk is stored in a scattered manner according to the space available on the hard disk.
Advantages
This system call would create a pipe for one-way communication i.e., it creates two descriptors, first one is connected to read from the pipe and other one is connected to write into the pipe.
5. What is Buffer? Types of Buffering? The buffer is an area in the main memory used to store or hold the data temporarily. In other words, buffer temporarily stores data transmitted from one place to another, either between two devices or an application. The act of storing data temporarily in the buffer is called buffering. 1. Single Buffer In Single Buffering, only one buffer is used to transfer the data between two devices. The producer produces one block of data into the buffer. After that, the consumer consumes the buffer. Only when the buffer is empty, the processor again produces the data. 2. Double Buffer In Double Buffering , two schemes or two buffers are used in the place of one. In this buffering, the producer produces one buffer while the consumer consumes another buffer simultaneously. So, the producer not needs to wait for filling the buffer. Double buffering is also known as buffer swapping. 3. Circular Buffer When more than two buffers are used, the buffers' collection is called a circular buffer. Each buffer is being one unit in the circular buffer. The data transfer rate will increase using the circular buffer rather than the double buffering.
How Buffering Works
6. What is Shared Memory? Shared memory is a memory shared between two or more processes. Shared memory is a memory shared between two or more processes. Each process has its own address space; if any process wants to communicate with some information from its own address space to other processes, then it is only possible with IPC (inter-process communication) techniques.
8. What is Authentication and Internal Access Authorization? Access Authorization Authorization is the process of giving someone permission to do or have something. In multi-user computer systems, a system administrator defines for the system which users are allowed access to the system and what privileges of use - Authorization is a process by which a server determines if the client has permission to use a resource or access a file. - The type of authentication required for authorization may vary; passwords may be required in some cases but not in others. - In some cases, there is no authorization; any user may be use a resource or access a file simply by asking for it. Most of the web pages on the Internet require no authentication or authorization. Most web security systems are based on a two-step process. The first step is authentication, which ensures about the user identity and the second stage is authorization, which allows the user to access the various resources based on the user's identity. Authentication in Operating System Authentication mechanism determines the users identity before revealing the sensitive information. It is very crucial for the system or interfaces where the user priority is to protect the confidential information. In the process, the user makes a provable claim about individual identity (his or her) or an entity identity. The credentials or claim could be a username, password, fingerprint etc.
Android Architecture android architecture or Android software stack is categorized into five parts:
Android Runtime The android runtime provides a key component called Dalvik Virtual Machine which is a kind of java virtual machine. It is specially designed and optimized for android. The Dalvik VM is the process virtual machine in the android operating system. It is software that runs apps on android devices. Application Framework The application framework layer provides many higher-level services to applications such as windows manager, view system, package manager, resource manager, etc. Applications You will find all the android applications at the top layer and you will write your application and install it on this layer. Examples of such applications are contacts, books, browsers, services, etc. Each application performs a different role in the overall applications.
**10. Explain Android Development Framework? Top Android Frameworks For App Development
11. Explain Android Applications? Android Applications Android applications are usually developed in the Java language using the Android Software Development Kit. Once developed, Android applications can be packaged easily and sold out either through a store such as Google Play , SlideME , Opera Mobile Store , Mobango , F-droid and the Amazon Appstore. Android powers hundreds of millions of mobile devices in more than 190 countries around the world. It's the largest installed base of any mobile platform and growing fast. Every day more than 1 million new Android devices are activated worldwide. This tutorial has been written with an aim to teach you how to develop and package Android application. We will start from environment setup for Android application programming and then drill down to look into various aspects of Android applications. Categories of Android applications There are many android applications in the market. The top categories are −
12. Explain Android Process Management and File System?