Skip to main content

Posts

Showing posts from February, 2022

AN INTRODUCTION TO OPERATING SYSTEMS ? What is operating system ?

 AN INTRODUCTION TO OPERATING SYSTEMS  ? What is operating system ? There are two type of software Application software and System software  Application software performs specific task for the user. System software operates and controls the computer system and provides a platform to run application software. what is an operating system - An operating system is a piece of software that manages all the resources of a computer system,both hardware and software, and provides an environment in which the user can execute his/her programs in a convenient and efficient manner by hiding underlying the complexity of the hardware and acting as a resource manager. Why OS Needed in computers?  1. What if there is no OS?  a. Bulky  and  complex  app.  (Hardware  interaction  code  must be  in  app’s code base)  b. Resource exploitation by 1 App.  c. No memory protection.  2. What is an OS made up of?  a. Co...

How do I get today's date in JavaScript?

  How do I get today's date in JavaScript?- There are various methods that retrieve the date in JavaScript. The data values can get like years, months, days, hours, minutes, seconds, milliseconds from a Date Object.  What are different method provided by Date class in JavaScript-> Method Description getFullYear() Get the  year  as a four digit number (yyyy) getMonth() Get the  month  as a number (0-11) getDate() Get the  day  as a number (1-31) getHours() Get the  hour  (0-23) getMinutes() Get the  minute  (0-59) getSeconds() Get the  second  (0-59) getMilliseconds() Get the  millisecond  (0-999) getTime() Get the time (milliseconds since January 1, 1970) getDay() Get the weekday as a number (0-6) Date.now() Get the time. ECMAScript 5.

Implement stack Using array || how to implement stack c++

 Implement stack Using array || how to implement stack  In this blog, we will be implementing stack using array. What is stack?  A stack is a conceptual structure consisting of a set of homogeneous elements and is based on the principle of last in first out (LIFO). It is a commonly used abstract data type with two major operations, namely push and pop. Push and pop are carried out on the topmost element, which is the item most recently added to the stack. The push operation adds an element to the stack while the pop operation removes an element from the top position. The stack concept is used in programming and memory organization in computers. Operation in Stack -> Push:  Adds an item in the stack. If the stack is full, then it is said to be an Overflow condition. Pop:  Removes an item from the stack. The items are popped in the reversed order in which they are pushed. If the stack is empty, then it is said to be an Underflow condition. Peek or Top:  Re...