Using Petri Nets For Resource Management Modeling In The Operating Systems Adalat Karimov 1 , Shahram Moharrami 2 1 Department of Information Economy and Technologies, Azerbaijan State Economic University, 2 Department of Computer Engineering, Parsabad Moghan Branch, Islamic Azad University,Iran, Abstrct Nowadays, with advances in computer science and increase in processor speed, modeling methods have found extensive applications in industrial fields. Petri Nets are one of these modeling methods. Petri Nets are based on graph theory and are applied specifically for concurrent and asynchronous applications. As executable models, they are capable of graphical description of complicated systems. On the other hand, development of hardware and other peripheral computer resources and development of various computer software systems call for efficient and powerful operating systems, so that users can use the software and hardware items in an effective manner. The purpose of this article is to study the application of Petri Nets for modeling resource management in operating systems with the aim of optimal utilization of resources and Deadlock Avoidance in the Operating Systems. Keywords Petri Nets ,Resources ,Deadlock Avoidance, Operating System, Place,Transition. 1- Introduction A model is a simple and understandable representation of the structure and behavior of the system under study which in most cases can be expressed by mathematical formulas.Decision rules can be obtained directly from a pattern[10,11]. In fact, using the model, we can acquire knowledge and information about the modeled phenomenon without experiencing the costs and risks associated with the real phenomenon. In the same way, Petri Nets are used for acquiring information about structure and function of modeled systems. Petri Nets were developed by Mr. Carl Adam Petri in 1962 [1]. His research focused on information systems. Numerous groups were formed in Germany and several other countries to conduct research projects on applications of Petri Nets. In this article, after a brief introduction to Petri Nets, we will investigate the problem of resource management modeling in the operating system using Petri Nets. 2- Petri Nets Petri Nets are based on graph theory. They are executable and have the capability for graphical description of complicated systems. The theory of Petri Nets has grown in two directions [4]: a. Applied: the applied theory of Petri Nets; b. Theoretical: the pure theory of Petri Nets. The objective of the developments in the applied domain is to provide essential tools, techniques, and relationships for application of Petri Nets. In fact, strong theory is a prerequisite for more effective applications. Developments in the theoretical direction consider that Petri Nets are useful for real world problems. Accordingly, we take into account both theoretical and applied aspects in this article. First, we define some formulas and then we describe the power and applications of this tool. 2.1 Basic Definition In this section, we present the official definition of hierarchical Petri Nets. This definition is required for a basic understanding and study of Petri Nets. Our formulation is based on the theory of sets. In fact, these nets provide a new class of machines called Petri Net automata. 2.2 Structure Of Petri Nets Since Petri Nets (PN) are a special form of graphs,we start with a few basic concepts from the graph theory [5]. IJCSI International Journal of Computer Science Issues, Vol. 9, Issue 1, No 3, January 2012 ISSN (Online): 1694-0814 www.IJCSI.org 283 Copyright (c) 2012 International Journal of Computer Science Issues. All Rights Reserved.