Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > The Future of C++ ?

Thread Tools

The Future of C++ ?

Mirek Fidler
Posts: n/a

Chris Thomasson wrote:
> "Mirek Fidler" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)
> >
> >> The main benefit from lock-free in a preemptive multi-threaded user
> >> environment is avoiding the overhead of thread suspend/resume when
> >> a thread blocks. 100's of nsec at least. So if lock contention
> >> is a problem and can't be avoided, lock-free is a possible solution.

> >
> > Win32 has CRITICAL_SECTION variant that spin-locks defined number of
> > times before suspending the thread. Is not that sort of solution in
> > certain cases? Is spin-lock considered "lock-free" ?

> No. The spinlock is spinning on lock state, not the state you intended to
> work on in the first place.

Ah, I guess I am getting into terminology

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Future of Voice Communication @ BonaFideReviews Silverstrand Front Page News 0 09-27-2005 01:47 PM
Microsoft Windows and the future of Firefox? Victor Firefox 19 06-12-2005 02:04 AM
future of high-speed cable modems? Midnight Java Junkie ASP .Net 0 06-20-2004 06:58 AM
Future Considerations Mr. Garrett Hord Microsoft Certification 1 01-09-2004 06:43 PM
Does EIGRP have a future? Brad Hill Cisco 6 01-07-2004 04:19 PM