The Embedded Way - The volatile keyword in C

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I don't know if I should say but I never thought how the volatile keyword will change the context with it's placement! This was really crazy! Thank you!

yashesvii
Автор

to sum it up, the volatile keyword prevents the variable from getting cached

Thanks for the awesome explanation

mohamedel-hadidy
Автор

Direct to "my favorites" list

casalaamericana
Автор

You are a real code guru 😮
Thank you!

sageeuthanasia
Автор

Fantastic; it's great explanation of C++ features that are usually shoved in the back. I love your video!

JoseGonzalez-rtfk
Автор

please talk about the keyword const, thanks for all the nice educational videos!!

iamsuperwen
Автор

Is there an embedded course that Siemens has anywhere online?

MalamIbnMalam
Автор

I need to learn embedded programming from scratch.... could you please help

madhavjha
Автор

Hoping my question is not stupid.


//program 1
volatile int *x = new int;
*x = 5;
write(anybinaryfile, &x, sizeof(int*));
while(1);


//program 2
volatile int *y;
read(anybinaryfile, &x, sizeof(int*));
printf("%d", *y);


/* should this work??? if run program 2 before shutting program 1.
As when I tried to run program 2, it returned core dump. */

rogerthat
Автор

shared variable with another executable thread can be either global or external variable ? is am i right ? is there any more situation ?
thank you so much

gghhff
Автор

No hesitation in hitting subscribe button

rutvijjoshi
Автор

Thk you so much! Thx., pls be more vedio

dannyfung