{"id":21455747,"url":"https://github.com/harrymadison297/linux-programming-interview","last_synced_at":"2026-03-09T06:31:27.160Z","repository":{"id":258541960,"uuid":"869419283","full_name":"harrymadison297/Linux-Programming-Interview","owner":"harrymadison297","description":"Linux embedded programming interview Q\u0026A","archived":false,"fork":false,"pushed_at":"2025-04-03T07:17:11.000Z","size":24861,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T16:38:48.360Z","etag":null,"topics":["embedded","interview","interview-preparation","linux","networking"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harrymadison297.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-08T09:08:00.000Z","updated_at":"2025-04-03T07:17:14.000Z","dependencies_parsed_at":"2025-07-07T16:38:55.121Z","dependency_job_id":"32b56f77-36cf-40f2-aa1f-7fcd81e374de","html_url":"https://github.com/harrymadison297/Linux-Programming-Interview","commit_stats":null,"previous_names":["harrymadison297/linux-programming-interview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harrymadison297/Linux-Programming-Interview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrymadison297%2FLinux-Programming-Interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrymadison297%2FLinux-Programming-Interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrymadison297%2FLinux-Programming-Interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrymadison297%2FLinux-Programming-Interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harrymadison297","download_url":"https://codeload.github.com/harrymadison297/Linux-Programming-Interview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrymadison297%2FLinux-Programming-Interview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30284774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedded","interview","interview-preparation","linux","networking"],"created_at":"2024-11-23T05:13:18.069Z","updated_at":"2026-03-09T06:31:27.141Z","avatar_url":"https://github.com/harrymadison297.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux Programming interview\n\n## Books\n[Advanced Linux Programming.pdf](/Books/Advanced%20Linux%20Programming.pdf)\n\n[The Linux Programming Interface.pdf](/Books/The%20Linux%20Programming%20Interface.pdf)\n\n[Understanding Linux Kernel.pdf](/Books/Understanding%20Linux%20Kernel.pdf)\n\n## Linux covered topics\n### 1. Process \n[Read here](/QA/Process.md)\n* Process definition\n\t* PID, PPID\n\t* Command line argument\n\t* Envinronment\n* Who can access to a process (Process credentials)\n\t* UIDs and GIDs\n\t* File-system user permissions\n\t* Interface\n* Process creation\n\t* `folk()`\n\t* File access when folk a new process\n\t* Memory semantics\n\t* Race condition\n* Child process monitor\n\t* `wait( *status)`\n\t* `waitpid( pid, *status, options)`\n\t* Orphan process and zombie process\n* Program execution\n\t* `execve( path, argv, envp )`\n\t* Run a shell command `system( *command)`\n* Process priorities and scheduler\n\t* `getpriority( which, who)`\n\t* `setpriority( which, who)`\n\t* Realtime scheduling\n* Process memory and resource\n\t\n\t![](/Assets/Memory_layout.png)\n\t* Process infomation in file system (`/proc`)\n* Process termination\n\t* `exit(status)`\n\t* Exit handlers `atexit(void (*func)(void))`, `on_exit()`\n\t* Termination flow\n* Daemon process\n\t* Definition\n\t* How to create a daemon process\n### 2. Threads \n[Read here](/QA/Thread.md)\n* Definition\n\n    ![](/Assets/Thread_memory_layout.png)\n* Thread identify\n  * `pthread_self()`\n  * `pthread_equal( thread_id_1, thread_id_2)`\n* Thread creation\n  * `pthread_create( *thread, *attr, *(*start), *arg)`\n* Thread manage\n  * `pthread_join( thread, **retval)`\n  * `pthread_detach( thread)`\n* Thread termination\n  * `pthread_exit( *retval)`\n* Compling thread\n  * `-pthread`\n* Thread synchronization\n  * Mutexes\n  * Condition variables\n### 3. Inter-Process Communication \n[Read here](/QA/IPC.md)\n   \n   ![](/Assets/ipc.png)\n### 4. File System Management \n[Read here](/QA/FileSystem.md)\n### 5. Memory \n[Read here](/QA/Memory.md)\n### 6. Networking \n[Read here](/QA/Networking.md)\n### 7. Other \n[Read here](/QA/Other.md)\n* Serial communication\n  * UART\n  * SPI\n  * I2C\n  * USB\n* Wireless communication\n  * Wifi\n  * BLE\n  * Zigbee","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharrymadison297%2Flinux-programming-interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharrymadison297%2Flinux-programming-interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharrymadison297%2Flinux-programming-interview/lists"}