Kristi Castro has Published 104 Articles

Starvation and Deadlock

Kristi Castro

Kristi Castro

Updated on 31-Jan-2020 10:20:36

5K+ Views

Starvation and Deadlock are situations that occur when the processes that require a resource are delayed for a long time. However they are quite different concepts.Details about starvation and deadlock are given as follows −StarvationStarvation occurs if a process is indefinitely postponed. This may happen if the process requires a ... Read More

Message Passing Model of Process Communication

Kristi Castro

Kristi Castro

Updated on 31-Jan-2020 10:14:25

10K+ Views

Process communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or transferring of data from one process to another. One of the models of process communication is ... Read More

The Benefits of Multithreaded Programming

Kristi Castro

Kristi Castro

Updated on 31-Jan-2020 09:59:23

8K+ Views

Multithreading allows the execution of multiple parts of a program at the same time. These parts are known as threads and are lightweight processes available within the process. So multithreading leads to maximum utilization of the CPU by multitasking.Some of the benefits of multithreaded programming are given as follows −Resource ... Read More

How to detect Ctrl+Enter in textarea using jQuery?

Kristi Castro

Kristi Castro

Updated on 30-Jul-2019 22:30:23

$(document).ready(function(){ $('#myinput').keydown(function(e) { var newkey = 'Key code = ' + e.which + ' ' + (e.ctrlKey ? 'Ctrl' : '') + ' ' + (e.shiftKey ? 'Shift' : '') + ' ' + (e.altKey ? 'Alt' : ''); $('#mykey').text(newkey); return false; }); });

Advertisements