Corrupt Stack Problem in C/C++ Program

Satish Kumar
Updated on 03-Mar-2023 15:05:25

3K+ Views

Introduction The corrupt stack problem is a common issue that programmers encounter while developing software in C and C++ programming languages. This problem can arise due to a wide range of reasons and can cause severe problems in functioning of program. In this article, we will explore corrupt stack problem in detail and look at some examples of how it occurs. What is a Stack in C and C++? Before we discuss corrupt stack problem, we need to understand what a stack is. In C and C++, a stack is a data structure that allows data to be stored and ... Read More

Who Called My D-Bus API in Linux System

Satish Kumar
Updated on 03-Mar-2023 15:02:10

692 Views

Introduction DBus is a widely used message bus system that facilitates communication between different software applications on Linux operating systems. It is used for inter-process communication (IPC) and allows applications to communicate with each other, even if they are running in different contexts. However, it can be difficult to determine which application or process is calling a specific DBus API. In this article, we will explore different methods for identifying caller of a DBus API on Linux. What is DBus? DBus is a message bus system used for inter-process communication (IPC) in Linux systems. It is a low-level, asynchronous protocol ... Read More

Share CUDA Context Between Applications

Satish Kumar
Updated on 03-Mar-2023 15:01:10

892 Views

Introduction CUDA is a parallel computing platform and programming model created by Nvidia. It allows developers to use a CUDA-enabled graphics processing unit (GPU) to accelerate processing tasks in their applications. A CUDA context is a software environment that manages memory and other resources required by a CUDA application. A CUDA context is created when an application calls CUDA API, and it remains active until application releases it. One question that arises is whether it is possible to share a CUDA context between applications. In this article, we will explore this topic and discuss advantages and challenges of sharing a ... Read More

Run Long Time Process on udev Event

Satish Kumar
Updated on 03-Mar-2023 15:00:11

2K+ Views

Introduction Udev is a device manager used by modern Linux systems. It detects hardware changes and manages device nodes in /dev directory. Udev provides a flexible way to run scripts or programs in response to device events. This feature can be used to perform various tasks like automounting, launching backup scripts, and running long-running processes. In this article, we will discuss how to run long time processes on Udev events and provide examples to illustrate concepts. Understanding Udev Rules Udev rules are files that specify how Udev should handle device events. A typical rule consists of four parts: a match, ... Read More

Find Unused Fields in Simulink Structure Variables

Satish Kumar
Updated on 03-Mar-2023 14:59:23

382 Views

Introduction Simulink is a popular tool used for modeling and simulating dynamic systems. In Simulink, structure variables are used to store and organize data for easy access and manipulation. However, it is not uncommon for structure variables to contain unused fields, which can make code unnecessarily complex and hard to maintain. In this article, we will discuss how to find unused fields in Simulink structure variables and provide examples to demonstrate process. What are Simulink Structure Variables? In Simulink, a structure variable is a container that holds data in fields. Fields are individual elements of structure that store a single ... Read More

Mechanism of Clipboard in X Window

Satish Kumar
Updated on 03-Mar-2023 14:58:30

410 Views

Introduction X Window System, commonly known as X11 or simply X, is a windowing system for bitmap displays. It was initially designed in mid-1980s to run on Unix-like operating systems. X Window System has a fundamental concept of a clipboard, which is used to transfer data between applications. In this article, we will explore mechanism of clipboard in X Window System. What is a Clipboard? A clipboard is a temporary storage area in memory that allows you to copy and paste text, images, or other data between applications. X Window System uses a clipboard to transfer data between applications. ... Read More

Bash Terminal Redirect to Another Terminal

Satish Kumar
Updated on 03-Mar-2023 14:58:03

3K+ Views

Introduction The Bash terminal is a powerful tool for interacting with a computer's operating system. One of essential features of Bash is ability to redirect output from one terminal to another. This can be useful in many situations, such as when you want to monitor output of a command in real-time or when you need to send output to another user's terminal. In this article, we will explore how to redirect Bash terminal output to another terminal, including various use cases and examples. Understanding Bash Terminal Redirection Bash terminal redirection allows you to redirect output of a command or script ... Read More

Installing and Configuring NET-SNMP for Linux

Satish Kumar
Updated on 03-Mar-2023 14:57:26

4K+ Views

Net-SNMP is an open-source software suite that implements Simple Network Management Protocol (SNMP) for managing network devices. It provides a wide range of tools that enable network administrators to monitor and manage their systems more effectively. In this article, we will explore how to install and configure Net-SNMP on a Linux system. Prerequisites Before we begin, ensure that you have access to a Linux system with root privileges. Additionally, make sure that system has an active internet connection to download necessary software packages. Installing Net-SNMP To install Net-SNMP on a Linux system, you can use package manager of your distribution. ... Read More

Sendto Operation Not Permitted in Net-SNMP

Satish Kumar
Updated on 03-Mar-2023 14:56:10

1K+ Views

Introduction In world of network management, Simple Network Management Protocol (SNMP) is one of widely used network protocols. It allows network administrators to monitor and manage network devices remotely. However, while working with SNMP, you might come across an error message called “sendto operation not permitted netsnmp”. This error is quite common and can be caused by several factors. In this article, we will explore causes of this error, its impact, and how to fix it. What is "sendto operation not permitted netsnmp" error? When you are working with SNMP, you may receive an error message that says “sendto operation ... Read More

Why Does -R Option Relocatable Make ld Not Find Any Libraries

Satish Kumar
Updated on 03-Mar-2023 14:54:02

304 Views

Introduction In world of programming and computer science, there are different techniques and tools used to solve various problems. One of common problems that programmers encounter is linking errors. When a program is compiled and linked, it has to find necessary libraries to function. However, there are times when linker fails to find required libraries, resulting in a linking error. In this article, we will discuss why -r option (relocatable) makes ld not find any libraries and provide examples. What is -r option? The -r option is a command-line option used with GNU linker, ld. option specifies that output of ... Read More

Advertisements