|
5 modules waiting on a single, binary, object.
One module at a time can get the object.
However any module might have to cancel it's wait request and exit.
There isnt a mechanism to do this. If the module that is exiting calls a release on the object, to signal it, it isnt guaranteed at all that it is THAT modules wait that will be satisfied.
So ignore the fancy Windows synchronisation mechanisms and just use a global flag. Since each module has its own function queue and processing thread, a function can just check the state of the flag, and if it is inuse, requeue itself after a little sleep. When that module needs to exit, the function sees this new state and just doesnt requeue itself.
I really like drivers having their own function queues. Not only do functions run synchronously (so no issues with shared access to data within each module), they all run at low priority, so can wait, and touch paged out data and code, but also as here, a function can endlessly requeue itself until some state is reached, and without risk of locking up the PnP manager.
modified 15-Mar-18 7:02am.
|
|
|
|
|
Munchies_Matt wrote: it isnt guaranteed at all that it is THAT modules wait that will be satisfied
No, it is guaranteed that one of them will be satisfied. Personally I prefer not to wait on a flag. I like to wait on an object (event in other lingos) with a timeout in a loop. Or I could also WaitOnMultipleObjects(...) one: the application object, two: the "stop-waiting-object".
... such stuff as dreams are made on
|
|
|
|
|
The object can be an event, mutex, or semaphore (as well as various other odds and ends) in the call to KeWaitxxxxx(), which can be called a 'flag'. It is just a term anyway, but you get my drift.
|
|
|
|
|
I see. By flag, I thought you meant a bool variable that you were polling : |
... such stuff as dreams are made on
|
|
|
|
|
No, I was using a binary semaphore.
Its a bit of a mess really, KeWaitForSingleObject increments a semaphore count, or aquires a mutex, which has to be released with a cal to KeReleasexxx.
For an event or a file handle/thread handle, you dont need to release anything after KeWaitxxxxxx.
Thats why I just binned it all and used a queued function that polls a global flag. Much simpler.
|
|
|
|
|
Sorry for being late -crazy day and it's only an hour in...
Thoughts without the first letter of the month a day for a killing (4, 2, 5)
|
|
|
|
|
Ides of March
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
|
Solution for those of us who marvel daily in other's ability to perform this action.
Please. Where are my manners?
|
|
|
|
|
Uh... are you asking for an explanation?
"Thoughts" = ideas
"without the first letter" - the "first letter" is "a", so take the "a" out of "ideas", and you're left with "ides"
"of" = of
"the month" = March
"a day for a killing" = the answer, the Ides of March, when Julius Caesar was killed.
[edit] - I should perhaps have capitalised "First Letter", but still....
modified 15-Mar-18 9:35am.
|
|
|
|
|
Knowing what day it was, I did get the Ides part and March in the "of the month" part. It was the of I couldn't where it came from. I see it was in the plain text now.
Thank you.
|
|
|
|
|
Hi All,
Just applied some of the hive mind to a real world problem, that was bugging a guy (to do with his home PC) pointed him toward Acronis True Image, that seems to answer all his problems. Someone else suggested Norton Ghost but...
(Cheers Griff!)
|
|
|
|
|
Hurrah, another one assimilated into the hive
|
|
|
|
|
glennPattonWork wrote: (Cheers Griff!)
You're welcome!
But I don't remember recommending Acronis ... AOMEI on the other hand ...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Right, I seem to remember Acronis in a disuccion between You and someone (I think our favorite right wing Merkin was involoved Mr Simmons) I'll pass on the details...
Just got a reply on internal chat a very happy service desk employee...
modified 15-Mar-18 5:33am.
|
|
|
|
|
I use Acronis
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Ah, that explains it! Cheers
|
|
|
|
|
Clonezilla here, 4 letter word beginning with F: Free
Has some limitations.
User: Technical term used by developers. See Idiot.
|
|
|
|
|
glennPattonWork wrote: Hi All,
Just applied some of the hive mind to a real world problem, that was bugging a guy (to do with his home PC) pointed him toward Acronis True Image, that seems to answer all his problems. Someone else suggested Norton Ghost but...
(Cheers Griff!)
Griff advised he don't use it. John's taken credit, I've been on Acronis since 2006 and think it was me, but don't care for accolades.
Do want to tell you that last week while fixing Windows 10 and networking at a Real Estate Agent, I stumbled upon they're previous Windows 8.1 Server (Yeah, no sh*t) that ran FileSmart (never heard of it either) which had all their documents (paperless you know), not backed up anywhere and Hard Disk Sentinel gave the HDD a 9% health with projected 9 days of life.
13 years of Acronis (paid for) and it could take the HP, 6 partition image, but not restore it to SSD. AOMEI Backupper free, let me creatye a USB boot disk, boot, take image and restore to SSD.
Faarrrkkkk you Sheep Boy, but I may have to change alliances now.
Not sure if I have finished beer 12 or if it's next. If so it's Bundy OP time. Footy's finished and have to be up no later than 8 hours. Maybe the girl can bash me awake, time will tell.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
I may take a look at that free one. Acronis is kinda intrusive and has too much crap going on in the background when you're not using it.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
John Simmons / outlaw programmer wrote: I may take a look at that free one. Acronis is kinda intrusive and has too much crap going on in the background when you're not using it.
Definitely a great product and one Griff has been spruking for years.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
John Simmons / outlaw programmer wrote: Acronis is kinda intrusive and has too much crap going on in the background when you're not using it.
Do they still do that? When will these companies learn...
Before I started using VMs (and thus just backing up entire VHD files), I used a pirated version of Acronis for years to back up my OS drive. Felt bad about it, as it was a great product, and I felt they deserved the support, so I ended up purchasing it. Much to my chagrin, the latest version installed a lot of crap, integrated into Explorer, that you couldn't get rid of. I ended up uninstalling it and sticking to my older copy.
|
|
|
|
|
I have used both, and actually continue to do so during my 1 year of evaluation.
I agree that Acronis has a LOT of extra baggage. I have a NAS device with 2 network ports, and I am trying to setup one connection to be secure, and to connect/disconnect only when the backups are running... Acronis is not making this easy. Windows is making it worse.
I also ran into a hiccup recently when Acronis Active Protection (Something I did not realize I was running blocked some code and screwed me up).
This may be the last year I run Acronis...
(I have a new 2TB SSD to install in my C: slot, so I am going to use AOMEI this time).
Thanks OG
|
|
|
|
|
Using any suggestions or advice, from the Lounge, in the real world, is a very dangerous endeavor. You are very lucky that you did not start the apocalypse.
|
|
|
|
|
Hi, I used Acronis True Image and encountered a very strange and debilitating problem on my 32 GB super dev PC...Memory use would steadily creep upwards until it hit 100% a few minutes after boot. Then it would sit there for about 20-30 minutes then steadily creep downward. So after every boot it was 30 minutes before I could use the PC. Also, it would do this intermittently during the day. Tried all sorts of things - RAM, new SSD, etc. Lots of ideas on the web but nothing worked until I started one by one uninstalling apps before doing a complete reformat and reload. And it was simply - Uninstall Acronis! The problem went away! And so did my use of Acronics. I use Macrium now and am happy with it and happier with it than when using Acronis. After spending months with this problem and was ready to dump and replace the motherboard...I dumped and will never use Acronis. Months of productivity negatively impacted.
|
|
|
|
|