Found 494 Articles for Computer Engineering

The Benefits of Multithreaded Programming

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 SharingAll the threads of a process share its resources such as memory, data, files etc. A single application can have different threads within the same address space using resource sharing.ResponsivenessProgram responsiveness allows a program to run even if part of it is blocked using multithreading. This can also be done ... Read More

User-level threads and Kernel-level threads

Alex Onsman
Updated on 04-Nov-2023 01:47:03

23K+ Views

A thread is a lightweight process that can be managed independently by a scheduler. It improves the application performance using parallelism.A thread shares information like data segment, code segment files etc. with its peer threads while it contains its own registers, stack, counter etc.The two main types of threads are user-level threads and kernel-level threads. A diagram that demonstrates these is as follows −User - Level ThreadsThe user-level threads are implemented by users and the kernel is not aware of the existence of these threads. It handles them as if they were single-threaded processes. User-level threads are small and much ... Read More

Critical Section Problem

Ricky Barnes
Updated on 31-Jan-2020 09:55:43

77K+ Views

The critical section is a code segment where the shared variables can be accessed. An atomic action is required in a critical section i.e. only one process can execute in its critical section at a time. All the other processes have to wait to execute in their critical sections.A diagram that demonstrates the critical section is as follows −In the above diagram, the entry section handles the entry into the critical section. It acquires the resources needed for execution by the process. The exit section handles the exit from the critical section. It releases the resources and also informs the ... Read More

Different Models of Interprocess Communication

Alex Onsman
Updated on 24-Jun-2020 08:39:53

12K+ Views

Interprocess 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.A diagram that illustrates interprocess communication is as follows −The models of interprocess communication are as follows −Shared Memory ModelShared memory is the memory that can be simultaneously accessed by multiple processes. This is done so that the processes can communicate with each other. All POSIX systems, as well as Windows operating systems use shared memory.Advantage of Shared Memory ... Read More

Interprocess Communication with Sockets

David Meador
Updated on 24-Jun-2020 08:28:42

5K+ Views

Interprocess 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 ways to manage interprocess communication is by using sockets. They provide point-to-point, two-way communication between two processes. Sockets are an endpoint of communication and a name can be bound to them. A socket can be associated with one or more processes.Types of SocketsThe different types of sockets are given as follows −Sequential Packet Socket: This type ... Read More

Different Operations on Processes

Kristi Castro
Updated on 24-Jun-2020 08:30:14

19K+ Views

There are many operations that can be performed on processes. Some of these are process creation, process preemption, process blocking, and process termination. These are given in detail as follows −Process CreationProcesses need to be created in the system for different operations. This can be done by the following events −User request for process creationSystem initializationExecution of a process creation system call by a running processBatch job initializationA process may be created by another process using fork(). The creating process is called the parent process and the created process is the child process. A child process can have only one ... Read More

What is Context Switching in Operating System?

Alex Onsman
Updated on 06-Sep-2023 10:36:19

39K+ Views

Context Switching involves storing the context or state of a process so that it can be reloaded when required and execution can be resumed from the same point as earlier. This is a feature of a multitasking operating system and allows a single CPU to be shared by multiple processes.A diagram that demonstrates context switching is as follows −In the above diagram, initially Process 1 is running. Process 1 is switched out and Process 2 is switched in because of an interrupt or a system call. Context switching involves saving the state of Process 1 into PCB1 and loading the ... Read More

GSM Architecture

Samual Sam
Updated on 24-Jun-2020 08:33:50

1K+ Views

Global System for Mobile communication (GSM) architecture comprises of the following components −Mobile Station : The mobile station is the mobile phone, which comprises of the mobile handset and SIM card. The mobile handset comprises of the transceiver, the display and its processor. SIM stands for SubscriberIdentity Module. It is a removable chip that contains account information of the subscriber and connects the handset to the mobile network system.Air Interface : The air interface is the interface between the mobile station and the Base Transceiver Station. It is also called the UM interface as it is analogous to U interface ... Read More

Global System for Mobile Communications

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

458 Views

Global System for Mobile communication (GSM) is the most widely used digital mobile telephony system. GSM technology was first launched in Finland in 1991. It was developed by European Telecommunications Standards Institute (ETSI) to describe the protocols for 2G mobile communications.Presently, GSM comprises of approximately 90% of mobile connections worldwide. Features Original 2G standard was a digital, circuit-switched, full duplex network. GSM is part of the evolution of wireless mobile telecommunications including High-Speed Circuit-Switched Data (HSCSD), General Packet Radio Services (GPRS), Enhanced Data GSM Environment (EDGE), and Universal Mobile Telecommunications Service (UMTS). GSM operates at either 900 MHz ... Read More

Digital Advanced Mobile Phone System

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

1K+ Views

Digital Advanced Mobile Phone System (D-AMPS)is a digital version of Advanced Mobile Phone Systems (AMPS), the original analog standard for cellular phones. D-AMPS uses a combination of time division multiple access (TDMA) and frequency division multiple access (FDMA). It adds TDMA to get three channels per AMPS channel, thus tripling the number of calls on a channel. Features They are standardised by IS-54 and IS-136. As in AMPS, D-AMPS also uses frequencies from 800 to 900MHz for transmission. Half of the spectrum is used for sending signals and the other half is used for receiving signals. The frequency ... Read More

Advertisements