This site works best with JavaScript enabled
Sign In
Discussions
Activity
Sign In
03.Control Structures. Conditional Statements
Please put your queries, doughts, clarifications or suggestions for 03.Control Structures. Conditional Statementshere...
by
pravjot
December 2
025.Rust Programming
permalink
02.Data-Types-in-Rust
Please put your queries, doughts, clarifications or suggestions for 02.Data-Types-in-Rusthere...
by
pravjot
December 1
025.Rust Programming
permalink
01.Introduction to Rust
if you get Temporary failure resolving 'in.archive.ubuntu.com' then run the below command to resolve it
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
by
utkarshraj273
November 30
025.Rust Programming
permalink
01.Introduction to Rust
Install Rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Check Installationrustc --version
by
pravjot
November 25
025.Rust Programming
permalink
01.Introduction to Rust
Please put your queries, doughts, clarifications or suggestions for 01.Introduction-To-Rust here...
by
pravjot
November 25
025.Rust Programming
permalink
Kernel Compilation Issues
fatal error: gelf.h: No such file or directory 10 | #include for Ubuntu:apt -y install libelf-dev
by
pravjot
November 24
000 Linux System Administration
permalink
Kernel Compilation Issues
fatal error: openssl/opensslv.h: No such file or directoryfor Ubuntu use the following commandsudo apt-get install openssl libssl-dev
by
pravjot
November 24
000 Linux System Administration
permalink
Queries. 16.Structures
Hello Everyone, I Am Facing an Error In Structure.When I use Structure With Modular Programming,Error Mentioned Below.
In file included from AddtionDistance.c:2:declaration.h:1:1: error: unknown type name ‘Distance’ 1 | Distance getDistance(); …
by
paraskashyup
November 20
001.16.Structures
permalink
009.08.Board Bringup. Paspberry Pi4
To get the kernel source please use following command:git clone --depth=1 https://github.com/raspberrypi/linux.git
The document has git clone --depth=1 https://gitlab.com/raspberrypi/linux. It will ask for the Gitlab ID.
by
chandhanif
November 17
009.06.Board Bringup. Raspberry Pi4
permalink
Kernel Compilation Issues
Hi All,I am facing issue while kernel build.I compiled kernel 6.8.8 and it compiled and booted fine but on booting gives an out of memory error no key is working to continue. The detailed error log shows kernel panic. Please help me out in resolvin…
by
dshikha492
November 17
000 Linux System Administration
permalink
Queries and Discussions. 05.Understanding-ARM-Board-Bringup
Hi All,I am facing issue while kernel build.I compiled kernel 6.8.8 and it compiled and booted fine but on booting gives an out of memory error no key is working to continue. The detailed error log shows kernel panic. Please help me out in resolvin…
by
dshikha492
November 17
009.05.Understanding-ARM-Board-Bringup
permalink
Queries 009.06-Board-Bringup-Raspberry-Pi
Issues, queries, suggestions or discussion related to
06-Board-Bringup-Raspberry-Pi 4should be posted here.
by
pravjot
November 16
009.06-Board Bringup Raspberry Pi
permalink
16. Describe the role of the `void *(*start_routine)(void *)` argument in `pthread_create()
Role of void* (*start_routine)(void*) in pthread_create() this argument contain function pointer pointer to thread funciton. It is a reentrant function which contain the routine or instruction for which thread is to be created or executed .
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
4. How does `pthread_create()` work and what arguments does it require to create a thread?
Working of pthread_create() function
when pthread_create() is called the operating system allocate resource for new threads such as stack and thread control box,then kernel initializes the thread and give it to scheduler for execution .The newly cr…
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
14. What are some common error codes returned by `pthread_create()`
Some common error codes are
1)EAGAIN:insufficent resources to create a new thread.
2)EINVAL: invalid attributes are specified in attributes parameters.
3)E PERM:caller does not have required permision to set certain thread attributes.
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
15. How does `pthread_create()` facilitate parallel processing
pthread_create() is frequently used in situations where task is divided into smaller units that run in parallel,such as multi-thread applications like web server where multiple clients request need to be handled concurrently.
some use cases where …
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
7. Describe the advantages of using Pthreads over processes in developing concurrent programs.
Advantage of pthread over process
1)Improved performance:by splitting task into multi threads,program can take advantage of multi core processor and executes task in parallel
2)Memory efficiency thread share the same memory space ,they are more me…
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
8. Explain the function and usage of `pthread_join()` and how it helps in thread synchronization.
pthread_join() function is used by one thread to wait for another thread to finish execution. when pthread_join is executes the calling thread goes into block states until created thread terminates and executes pthread_exit () call,the created threa…
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
12. Explain the four arguments of `pthread_create()` and their significance in thread creation.
Each thread is creates inside process using pthread_create() API.
int pthread_create(pthread_t *thread,attributes,void* (*start_routine),(void*)arg)
first argument is pointer of type pthread_t it assign unique ID to thread and store it to memory…
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
11. What is the purpose of the `pthread_create()` function in POSIX threads
pthread_create() is API which is used to create a new thread in multi-threading program.This function allow to initiate a seperate thread within same process running independently from the calling thread.
by
abhinandan2971verma
November 14
003.11.POSIX-Threads
permalink
More Results
Powered by
Vanilla
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership