Home » Uncategorized » STATUS PROSES PADA SISTEM OPERASI

STATUS PROSES PADA SISTEM OPERASI

Sistem operasi pada hakikatnya merupakan sarana untuk menghubungkan komputer dengan user, di dalamnya terdapat banyak sekali fitur-fitur yang disajikan diantaranya untuk menjalankan program-program atau aplikasi-aplikasi, seluruh aktivitasitu ialah sama, maka kita bisa menyebut seluruh program sebagai proses-proses.

Suatu proses adalah lebih dari kode program, dimana kadang kala dikenal sebagai bagian tulisan. Proses juga termasuk aktivitas yang sedang terjadi, sebagaimana digambarkan oleh nilai pada program counter dan isi dari daftar prosesor/ processor’s register. Suatu proses umumnya juga termasuk process stack, yang berisikan data temporer (seperti parameter metoda, address yang kembali, dan variabel lokal) dan sebuah data section, yang berisikan variabel global.

Keadaan proses

Sebagaimana proses bekerja, maka proses tersebut merubah state (keadaan statis/ asal). Status dari sebuah proses didefinisikan dalam bagian oleh aktivitas yang ada dari proses tersebut. Tiap proses bisa kita definisikan sebagai berikut:

  1. New                      : Proses sedang dikerjakan/ dibuat.
  2. Running               : Instruksi sedang dikerjakan.
  3. Waiting                 : Proses sedang menunggu sejumlah kejadian untuk terjadi (seperti sebuah penyelesaian I/O atau penerimaan sebuah tanda/ signal).
  4. Ready                   : Proses sedang menunggu untuk ditugaskan pada sebuah prosesor.
  5. Terminated        : Proses telah selsesai melaksanakan tugasnya/ mengeksekusi.

 

Istilah dari kata-kata di atas bisa saja bebeda-beda tergantung dari kita yang menginterpretasikannya, untuk menjelaskan poin-poin di atas kita bisa melihat gambar berikut

4-1

 

Di gambar di atas kita bisa melihat bagaimana suatu program ditangani baik itu ketika siap, berjalan menunggu dan dihancurkan atau terminasi.

Process Control Block

Proses kontrol block adalah proses yang dilakukan oleh sistem operasi untuk mempresentasikan tiap-tiap proses yang ada. Adapun proses-proses yang ada ialah Mutual Exclusion, deadlock, stravation, strategi preemtive, strategi non preemtive, multiprocessing system, dan multiprogramming.  Dalam menjalankan tugasnya proses banyak mengalami gangguan oleh karenanya ada fitur yang bernama PCB (Proses Control Block) untuk membantu dan memberikan dukungan kepada proses itu. Proses Control Block adalah bentuk informasi-informasi lain yang diperlukan sitem operasi untuk mengendalikan dan mengoordinasikan beragam proses aktif dalam suatu proses, berikut adalah sebuah gambar yang bisa sedikit mendeskripsikan Proses Control Blok

4-2

Sekilas penjelasan proses-proses dalam PCB :

  • Mutual Exclusion adalah jaminan bahwa hanya satu proses yang mengakses sumber daya pada suatu interval waktu tertentu.
  • Deadlock adalah proses tunggu dimana proses tersebut tidak pernah terjadi. Deadlock biasa juga disebut hang.
  • Stravation situasi dimana proses-proses menunggu secara tidak tentu dengan menggunakan semaphore. Semaphore adalah pendekatan dimana dua atau lebih dapat bekerjasama menggunakan penanda-penanda sederhana.
  • Strategi preemtive yaitu suatu strategi dimana proses yang sedang dieksekusi dapat diambil alih oleh proses lain.
  • Strategi Non Preemtive yaitu suatu strategi dimana proses sedang di eksekusi, maka proses tidak dapat dihentikan atau diambil alih oleh proses lain.
  • Multiprocessing system yaitu dapat menjalankan beberapa proses dalam waktu yang bersamaan.
  • Multiprogramming yaitu menjalankan suatu program dalam waktu yang bersamaan.

 

Dalam PCB juga terkandung informasi-informasi di dalamnya :

  • Pointer merupakan penunjuk yang dinamis dimana suatu peubah yang akan dialokasikan hanya pada saat diperlukan.
  • Status Proses Status new, ready, running, waiting, terminated, dan sebagainya .
  •  Program Counter. Suatu stack/tumpukan yang berisi alamat dari instruksi yangakan dieksekusi.
  • CPU register.
  • Informasi manajemen memori. Informasi ini dapat termasuk suatu informasisebagai nilai dari dasar dan batas register, tabel halaman, atau tabel segmentergantung pada sistem memori yang digunakan oleh sistem operasi.
  • Informasi pencatatan. Informasi ini termasuk jumlah dari CPU dan waktu yang dipakai, batas waktu, jumlah akun, jumlah proses, dan sebagainya.
  • Informasi status M/K. Informasi termasuk daftar dari perangkat M/K yang digunakan pada proses ini.

Pembentukan proses

Saat komputer berjalan, terdapat banyak proses yang berjalan secara bersamaan. Sebuah proses dibuat melalui system call create-process membentuk proses turunan (child process) yang dilakukan oleh proses induk parent process. Proses turunan tersebut juga mampu membuat proses baru sehingga kesemua proses-proses ini pada akhirnya membentuk pohon proses. Ketika sebuah proses dibuat maka proses tersebut dapat memperoleh sumber-daya seperti ”waktu CPU”, ”memori”, ”berkas” atau perangkat ”M/K”. Sumber daya ini dapat diperoleh langsung dari Sistem Operasi, dari Proses Induk yang membagi-bagikan sumber daya kepada setiap proses turunannnya, atau proses turunan dan proses induk berbagi sumber-daya yang diberikan Sistem Operasi. Ada dua kemungkinan bagaimana jalannya (running) proses induk dan turunan berjalan (running). Proses-proses tersebut berjalan secara konkuren atau proses induk menunggu sampai beberapa/seluruh proses turunannya selesai berjalan. Juga terdapat dua kemungkinan dalam pemberian ruang alamat (address space) proses yang baru.

Terminasi proses

Suatu proses diterminasi ketika proses tersebut telah selesai mengeksekusi perintah terakhir serta meminta sistem operasi untuk menghapus perintah tersebut dengan menggunakan system call exit. Pada saat itu, proses dapat mengembalikan data keluaran kepada proses induk-nya melalui system call wait. Semua sumber-daya yang digunakan oleh proses akan dialokasikan kembali oleh system operasi agar dapat dimanfaatkan oleh proses lain. Suatu proses juga dapat diterminasi dengan sengaja oleh proses lain melalui system call abort. Biasanya proses induk melakukan hal ini pada turunannya. Alasan terminasi tersebut seperti:

  1. Turunan melampaui penggunaan sumber-daya yang telah dialokasikan. Dalam keadaan ini, proses induk perlu mempunyai mekanisme untuk memeriksa status turunannya-nya.
  2. Task yang ditugaskan kepada turunan tidak lagi diperlukan.
  3.  Proses induk selesai, dan sistem operasi tidak mengizinkan proses turunan untuk tetap berjalan.

Jadi, semua proses turunan akan berakhir pula. Hal ini yang disebut cascading termination.

Referensi


2,263 Comments

  1. Do you have a spam issue on this blog; I also am a blogger, and I was curious about your
    situation; many of us have created some nice practices and
    we are looking to trade methods with other folks, why not shoot me an e-mail if interested.

  2. Men taking such pills feel the effect after 15 minutes.These drugs treat benign prostatic hyperplasia BPH , also known as prostate enlargement, in men.In 2007, the UK regulatory authorities allowed some pharmacies to sell Viagra without a prescription to find out whether it was safe.I sometimes cannot maintain hardness for intercourse for very long, even with the viagra.This Consumer Health Digest content has been reviewed, as well as checked for facts, so as to guarantee the best possible accuracy.

  3. This released GTA 5 Online Maker takes benefit of a programming flaw in the line that allows for untrammelled adding of liberate GTA 5 Money and RP on users accounts.

  4. What’s Going down i am new to this, I stumbled upon this I’ve
    found It positively helpful and it has helped me out loads.
    I am hoping to give a contribution & aid different customers like its aided
    me. Great job.

  5. Hi there, just became alert to your blog through Google, and found that it’s really informative.
    I am going to watch out for brussels. I will be grateful if you continue
    this in future. Many people will be benefited from your writing.
    Cheers!

  6. Magnificent beat ! I wish to apprentice
    even as you amend your website, how can i subscribe for a blog website?
    The account helped me a appropriate deal. I were a
    little bit familiar of this your broadcast offered brilliant clear concept

  7. Having read this I believed it was really enlightening.

    I appreciate you taking the time and energy to put this informative article together.
    I once again find myself spending way too much time both reading and commenting.
    But so what, it was still worth it!

  8. I’m really loving the theme/design of your web site. Do you ever run into any browser
    compatibility issues? A few of my blog readers have complained about my
    website not working correctly in Explorer but looks great
    in Opera. Do you have any tips to help fix this problem?

  9. I’m really inspired with your writing skills as
    neatly as with the format in your blog. Is this a paid subject or did
    you customize it your self? Either way stay up the excellent
    high quality writing, it’s rare to see a great blog like this
    one these days..

  10. My brother recommended I would possibly like this blog.
    He was entirely right. This post truly made my day.
    You cann’t believe simply how so much time I had spent for this information! Thank you!

  11. Heya are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started and set up my own. Do you need any
    html coding knowledge to make your own blog?

    Any help would be greatly appreciated!

  12. After looking into a few of the blog posts on your web
    site, I truly appreciate your way of writing a blog. I added it to my bookmark website list and will be checking back in the near
    future. Take a look at my web site too and let
    me know your opinion.

  13. Excellent post. I was checking constantly this blog and I’m impressed!
    Very helpful information specifically the last part 🙂 I care for such info much.
    I was looking for this particular information for a
    long time. Thank you and good luck.

  14. scoliosis
    With havin so much content do you ever run into any problems of
    plagorism or copyright infringement? My blog has a lot of unique content I’ve either created myself or
    outsourced but it appears a lot of it is popping it up
    all over the internet without my authorization. Do you know any methods
    to help reduce content from being ripped off?
    I’d truly appreciate it. scoliosis

  15. scoliosis
    When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and
    now whenever a comment is added I receive 4 emails with the same comment.

    Perhaps there is a way you can remove me from that service?

    Many thanks! scoliosis

  16. magnificent post, very informative. I ponder why the opposite specialists of this sector do not notice this.
    You must proceed your writing. I’m sure, you’ve a huge
    readers’ base already!

  17. Woah! I’m really enjoying the template/theme of this website.

    It’s simple, yet effective. A lot of times it’s very hard to get
    that “perfect balance” between usability and visual appeal.
    I must say that you’ve done a very good job with this.
    Additionally, the blog loads super fast for me on Opera.
    Excellent Blog!

  18. Today, I went to the beach front with my kids. I found a sea
    shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She
    put the shell to her ear and screamed. There was a hermit
    crab inside and it pinched her ear. She never wants to go back!

    LoL I know this is totally off topic but I had to tell someone!

  19. I will immediately take hold of your rss feed as I can not to find your email
    subscription link or e-newsletter service. Do you’ve any?

    Kindly allow me recognize so that I may just subscribe.
    Thanks.

  20. Great post. I used to be checking continuously this blog and I’m impressed!

    Extremely helpful info particularly the final part :
    ) I handle such info much. I used to be seeking this
    particular info for a very lengthy time. Thank you and good luck.

  21. Link exchange is nothing else however it is simply placing the other
    person’s blog link on your page at proper place and other person will also do same in support
    of you.

  22. Hey! I know this is somewhat off-topic however
    I had to ask. Does operating a well-established blog such as yours take a lot
    of work? I am brand new to writing a blog however I do write in my journal daily.
    I’d like to start a blog so I can share my personal experience
    and thoughts online. Please let me know if you have any recommendations or tips for new aspiring blog owners.

    Appreciate it!

  23. Hey I know this is off topic but I was wondering
    if you knew of any widgets I could add to my blog that automatically tweet my newest
    twitter updates. I’ve been looking for a plug-in like
    this for quite some time and was hoping maybe you would have some experience with
    something like this. Please let me know if you run into anything.
    I truly enjoy reading your blog and I look forward to your new updates.

  24. Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or something.
    I think that you can do with some pics to drive the message home a little bit, but instead of that, this is magnificent blog.
    A great read. I’ll definitely be back.

    my site: DarbyXKessel

  25. XEvil-alat captcha solver terbaik dengan jumlah tidak terbatas, tanpa batas nomor thread dan presisi tertinggi!
    XEvil 5.0 dukungan lebih dari 12.000 jenis gambar-captcha, termasuk ReCaptcha, Google captcha, Yandex captcha, Microsoft captcha, Steam captcha, SolveMedia, ReCaptcha-2 dan (ya!!!) ReCaptcha-3 juga.

    1.) Fleksibly: Anda dapat menyesuaikan logika untuk captchas unstandard
    2.) Tenang.: jalankan saja XEvil, tekan 1 tombol – dan akan secara otomatis menerima captchas dari aplikasi atau skrip
    3.) Cepat: 001 detik untuk captchas sederhana, sekitar 20..40 detik untuk ReCaptcha-2, dan sekitar 5…8 detik untuk ReCaptcha-3

    Anda dapat menggunakan XEvil dengan perangkat lunak SEO/SMM apapun, Parser dari sandi-checker, aplikasi analitik apapun, atau skrip ubahan apapun:
    Dukungan XEvil paling terkenal dari layanan anti-captcha API: 2Captcha, RuCaptcha, AntiGate (Anti-Captcha.com), DeathByCaptcha, etc.

    Tertarik? Cari saja di Google” XEvil ” untuk info lebih lanjut
    Anda membaca ini-maka bekerja! ;)))

    Regards, LolitoApown4399

    XEvil.Net

  26. XEvil-alat captcha solver terbaik dengan jumlah tidak terbatas, tanpa batas nomor thread dan presisi tertinggi!
    XEvil 5.0 dukungan lebih dari 12.000 jenis gambar-captcha, termasuk ReCaptcha, Google captcha, Yandex captcha, Microsoft captcha, Steam captcha, SolveMedia, ReCaptcha-2 dan (ya!!!) ReCaptcha-3 juga.

    1.) Fleksibly: Anda dapat menyesuaikan logika untuk captchas unstandard
    2.) Tenang.: jalankan saja XEvil, tekan 1 tombol – dan akan secara otomatis menerima captchas dari aplikasi atau skrip
    3.) Cepat: 001 detik untuk captchas sederhana, sekitar 20..40 detik untuk ReCaptcha-2, dan sekitar 5…8 detik untuk ReCaptcha-3

    Anda dapat menggunakan XEvil dengan perangkat lunak SEO/SMM apapun, Parser dari sandi-checker, aplikasi analitik apapun, atau skrip ubahan apapun:
    Dukungan XEvil paling terkenal dari layanan anti-captcha API: 2Captcha.com, RuCaptcha, AntiGate (Anti-Captcha.com), DeathByCaptcha, etc.

    Tertarik? Cari saja di Google” XEvil ” untuk info lebih lanjut
    Anda membaca ini-maka bekerja! 😉

    Regards, LolityApown0712

    XEvil.Net

  27. Pastquestion.me is an educational website that provides its audience with updated copies of various past questions and answers for any Nigerian examination. The company was established in 2014, and since then it has helped millions of people to pass their examinations by providing them with access to up-to-date questions and answers from previous years’ exams.
    https://pastquestion.me/school-of-nursing/

  28. I’ve been surfing online more than 3 hours today,
    yet I by no means found any fascinating article like yours.
    It is pretty price sufficient for me. In my view, if all webmasters and bloggers made just right content as you did, the internet will likely be
    a lot more helpful than ever before.

  29. You’re so awesome! I don’t suppose I’ve truly read through anything like that before.
    So good to discover another person with a few genuine thoughts
    on this subject. Seriously.. thank you for starting this up.
    This website is something that is required on the internet, someone with a little
    originality!

  30. Hey there! This is kind off off topic but I neeed some help from an established blog.
    Is it very difficult to set up your own blog? I’m not very techincal but I caan figure thingss out
    pretty quick. I’m thinking about setting up my own but I’m nott sure
    where to begin. Do you have any tkps or suggestions?
    Thank you
    ถอนเงินจาก skrill site สอน iq
    option

  31. You can definitely see your expertise within the article you
    write. The world hopes for even more passionate
    writers such as you who are not afraid to say how they believe.
    All the time go after your heart.

  32. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now
    each time a comment is added I get three e-mails with the
    same comment. Is there any way you can remove people from
    that service? Thanks!
    벤 징가 프로 검토 website 이진 거래 리뷰

  33. The recent surges are encouraging for enthusiasts of the virtual money, yet a methods from
    that searing rise in appeal, when the worth of bitcoin reached an all-time
    high of more than $19000 per coin. As rates rise, so will public interest in investing in digital money.

    One of the most encouraging method for purchasing as well as learning
    more about the ups and also downs of the currency is to
    discover what some call the “alt coin” market. This is where
    you can sell alt coins such as bitcoin as well
    as other “alt coins.” There are professionals who claim that there is no high risk in investing in these money.
    These specialists say the volatility of the marketplace forces both the cost and also
    the value of coins to fluctuate. And while there is certainly take the
    chance of entailed, it is still worth finding out and researching
    concerning these currencies because you might wind up with an possibility to make some actual cash!

    One means for newbies to discover how to buy bitcoin is to
    very first exercise with a demonstration account at an online broker.
    This will certainly enable you to discover regarding how to deal utilizing your virtual
    account without needing to put real cash on the line.
    The procedure is secure, simple, and enables you to practice trading without in fact running
    the risk of any real funds. For most investors, this is the quickest means to get
    a deal with on the characteristics of this interesting new virtual property course.

    Bitcoin exchange

  34. First off I would like to say awesome blog! I
    had a quick question that I’d like to ask if you don’t mind.
    I was curious to know how you center yourself
    and clear your thoughts before writing. I have had
    trouble clearing my thoughts in getting my thoughts out there.

    I do take pleasure in writing but it just seems like the first 10 to 15
    minutes are generally lost just trying to figure out how to begin. Any suggestions or hints?
    Thanks! https://classicalwisdom.com/forums/topic/dating-websites/page/6/

  35. magnificent ρoints altogether, үоu just gained
    a brand new reader. Ꮃhat might you suցgest aboᥙt yoᥙr publish
    that you simply mаde a few daʏs ago? Any sure?

  36. Listen to Sex Telefon Roksa (Roksti) on the Web.
    Sex Telefon Roksa (Roksti) is a Polish folk song
    written by Renata Przemyk and is sung by Renata Przemyk-Wojek.
    The tune is regarding love, relationship and also the vocalist’s
    experiences taking a trip along the risky course
    of love. It can be translated as ‘The Return of
    the Fan’. The Sex Telefon Roksa (Roksti) tune is
    offered totally free download on the net.

    An extract from the album variation of Sex Telefon Roksa (Album Variation), ‘The Return of the Lover’, can additionally be downloaded and install.
    The cd variation of Sex Telefon Roksa has an introduction verse that goes – “I want you to love me – I desire you to be my friend”.
    The tune continues with three stanzas of love songs. This track is quite popular
    with young adults. The Sex Telefon Roksa album
    variation has been utilized on numerous tv shows, in addition to on national news programs.

    In this tune from the Sex Telefon cd, entitled ‘I’m Not Your Type’,
    Pawel Kucia performs with a extremely heavy accent, offering the listener the feeling that the singer
    is in an incredibly poor mood. The Sex Telefon Roksa
    track can also be downloaded and install from several web sites on the Internet.

    Roksa sex telefon