1
PROCESSES IN UNIXयूनिक्स में प्रोसेस
A PROCESS is an instance of an executing program. Each process has a unique PID, its process identifier.
- The PROCESS CONTROL BLOCK is the data structure that stores information about a process
- Each process has its own address space, open files, pending signals and signal handlers
- The FORK system call creates a new process; the parent uses WAIT to learn that a child has ended
- The PROGRAM COUNTER gives the address of the next instruction
- Shell built-ins such as pwd and cd create no process
- प्रोसेस कंट्रोल ब्लॉक वह डेटा संरचना है जो प्रोसेस की जानकारी रखती है
- हर प्रोसेस का अपना एड्रेस स्पेस, खुली फाइलें, लंबित सिग्नल और सिग्नल हैंडलर होते हैं
- फोर्क सिस्टम कॉल नया प्रोसेस बनाता है; पैरेंट वेट से जानता है कि चाइल्ड समाप्त हो गया
- प्रोग्राम काउंटर अगले निर्देश का पता देता है
- pwd और cd जैसे शेल बिल्ट-इन कोई प्रोसेस नहीं बनाते
2
JOBS, DAEMONS AND DEADLOCKजॉब, डेमन और डेडलॉक
- You can run a command in the FOREGROUND or the BACKGROUND; by default it runs in the foreground
- JOBS lists the status of jobs; FG brings a background job to the foreground; BG resumes it in the background
- A DAEMON is a process that runs automatically, without user interaction. CRON is a daemon
- A set of processes is in DEADLOCK when each is blocked and will stay blocked forever
- A system that runs only one process at a time is a UNIPROGRAMMING system
- आप कमांड को फोरग्राउंड या बैकग्राउंड में चला सकते हैं; डिफॉल्ट रूप से यह फोरग्राउंड में चलती है
- jobs जॉब की स्थिति दिखाता है; fg बैकग्राउंड जॉब को फोरग्राउंड में लाता है; bg उसे बैकग्राउंड में फिर चलाता है
- डेमन वह प्रोसेस है जो उपयोगकर्ता के हस्तक्षेप के बिना स्वतः चलता है। क्रॉन एक डेमन है
- प्रोसेसों का समूह डेडलॉक में होता है जब हर प्रोसेस अवरुद्ध हो और सदा अवरुद्ध रहे
- जो प्रणाली एक समय में केवल एक प्रोसेस चलाए, वह यूनिप्रोग्रामिंग प्रणाली है
3
PAGING, SWAPPING AND THE PAGING SPACEपेजिंग, स्वैपिंग और पेजिंग स्पेस
- PAGING divides memory into fixed-size PAGES, so a program need not sit in one block
- A PAGE FAULT occurs when a page you need is not in RAM; it is fetched from disk
- SWAPPING moves a whole process between RAM and disk
- When memory is full, the LEAST RECENTLY USED page is usually replaced first
- In AIX the disk area for paging is the PAGING SPACE; lsps shows it
- पेजिंग मेमोरी को निश्चित आकार के पेजों में बाँटती है, ताकि प्रोग्राम को एक ही खंड में न रहना पड़े
- पेज फॉल्ट तब होता है जब आपको चाहिए पेज रैम में न हो; उसे डिस्क से लाया जाता है
- स्वैपिंग पूरे प्रोसेस को रैम और डिस्क के बीच ले जाती है
- मेमोरी भरने पर प्रायः सबसे कम हाल में उपयोग हुआ पेज पहले बदला जाता है
- एआईएक्स में पेजिंग के लिए डिस्क क्षेत्र पेजिंग स्पेस है; lsps उसे दिखाता है
4
THE LOGICAL VOLUME MANAGERलॉजिकल वॉल्यूम मैनेजर
The LVM of AIX builds LOGICAL VOLUMES on top of physical disks.
- PHYSICAL VOLUMES, the disks, are grouped into a VOLUME GROUP
- Each physical volume is cut into PHYSICAL PARTITIONS
- LOGICAL VOLUMES are carved out of the volume group, and file systems sit on them
- You can add a new disk easily, and grow a volume dynamically
- A logical volume can be MIRRORED, and its space re-allocated
- फिजिकल वॉल्यूम, अर्थात् डिस्कें, एक वॉल्यूम ग्रुप में रखी जाती हैं
- हर फिजिकल वॉल्यूम फिजिकल पार्टीशनों में बँटता है
- लॉजिकल वॉल्यूम वॉल्यूम ग्रुप से बनाए जाते हैं, और फाइल सिस्टम उन पर रहते हैं
- आप नई डिस्क आसानी से जोड़ सकते हैं, और वॉल्यूम गतिशील रूप से बढ़ा सकते हैं
- लॉजिकल वॉल्यूम मिरर किया जा सकता है, और उसका स्थान फिर आवंटित किया जा सकता है