<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C on Notities</title><link>https://www.vandenboom.icu/en/tags/c/</link><description>Recent content in C on Notities</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sat, 22 Mar 2025 19:32:21 +0000</lastBuildDate><atom:link href="https://www.vandenboom.icu/en/tags/c/index.xml" rel="self" type="application/rss+xml"/><item><title>Use of Golang, Java, C/C++, or Rust: A Quick Guide</title><link>https://www.vandenboom.icu/en/blog/2025-use-of-golang-java-c-c-or-rust-a-quick-guide/</link><pubDate>Sat, 22 Mar 2025 19:32:21 +0000</pubDate><guid>https://www.vandenboom.icu/en/blog/2025-use-of-golang-java-c-c-or-rust-a-quick-guide/</guid><description>For real-time applications, Go and Rust are the top choices due to their lightweight concurrency and memory efficiency. Combine them for a balanced approach: Go for high-level logic and Rust for performance-critical tasks. Use C/C++ for legacy systems and Java for enterprise-level applications where real-time performance is less critical.
When using Go, the chance of classic concurrency errors like race conditions, deadlocks, and resource leaks is significantly reduced. This is thanks to Go&amp;rsquo;s use of channels for safe communication between goroutines and its built-in garbage collector, which works seamlessly with the goroutine scheduler.</description></item><item><title>Create a Zombie process in Linux using a C program</title><link>https://www.vandenboom.icu/en/blog/2024-maak-een-zombie-proces-in-linux-m-b-v-een-c-programma/</link><pubDate>Wed, 31 Jan 2024 20:54:45 +0000</pubDate><guid>https://www.vandenboom.icu/en/blog/2024-maak-een-zombie-proces-in-linux-m-b-v-een-c-programma/</guid><description>Below is the source code of a C program to create a Zombie process in Linux and analyse it.
vim create_zombie_process.c #include &amp;lt;stdlib.h&amp;gt;#include &amp;lt;sys/types.h&amp;gt;#include &amp;lt;unistd.h&amp;gt; int main () { pid_t child_pid; child_pid = fork (); if (child_pid &amp;gt; 0) { sleep (60); } else { exit (0); } return 0; } Compile the C source code into an executable program:
gcc create_zombie_process.c Start the program:
./a.out Open a second Terminal and view the process list.</description></item></channel></rss>