PranabNandy / Linux-Kernel-Internals

GNU General Public License v3.0
0 stars 0 forks source link

Senior Embedded Enigineer #5

Open PranabNandy opened 1 month ago

PranabNandy commented 1 month ago

Based on my personal experience..Many top companies prefers to ask real world questions for senior embedded roles..

👇Listing few coding questions related to embedded systems that will help to prepare real world embedded programing challenges and also interview preparation booster for top product companies

👉Write an interrupt service routine (ISR) in an embedded system for a GPIO button press. Ensure that the ISR handles debouncing and manages a shared resource safely between the ISR and the main program using appropriate synchronization mechanisms.

👉Implement a round-robin scheduling algorithm for a real-time embedded system with multiple tasks of varying execution times. Each task should run for a fixed time slice, and you must account for preemption if a higher-priority task arrives.

👉Design a memory management system for an embedded device with limited memory. Implement a custom dynamic memory allocator that efficiently handles memory fragmentation and allocation failures in real-time applications.

👉Implement a mechanism for user-space applications to communicate with a kernel module in a Linux-based embedded system. Use character device files and IOCTL calls to send commands and receive status updates between the user and kernel space.

👉Write a C program for an embedded Linux system that sets up signal handlers for handling SIGINT and SIGTERM. The program should safely manage termination and resource cleanup when receiving these signals, ensuring that critical sections are not interrupted.

👉Write a program for an embedded system that sets up a periodic timer to trigger every 100 ms. The timer should invoke a callback function that reads sensor data and stores it in a buffer. Ensure that the buffer is managed safely if the timer interrupt occurs while the main program is processing the data.

PranabNandy commented 5 days ago

What is Suspend-to-RAM?

Screenshot from 2024-11-23 21-22-38

Screenshot from 2024-11-23 21-55-27

Screenshot from 2024-11-23 23-11-02

PranabNandy commented 5 days ago

Let's debug something

Screenshot from 2024-11-24 12-03-20

Screenshot from 2024-11-24 12-22-25

PranabNandy commented 4 days ago

Annotation 2024-11-24 191504 - Copy