Przejdź do treści
Logo

kuling.pl

  • Główna
  • Arkdisk
  • Forum
  • Kontakt

Jesteś tutaj

Start » Monthly archive

Czerwiec 2009

WinAPI Kernel Prefixes

published by Kuling on czw., 2009-06-04 17:14

http://blogs.msdn.com/oldnewthing/archive/2009/06/03/9687937.aspx

Kategorie: 
C++
Programowanie
  • Czytaj dalej wpis WinAPI Kernel Prefixes
  • Blog
  • 250 odsłon

A scalable reader/writer scheme with optimistic retry

published by Kuling on pt., 2009-06-05 17:44

http://www.bluebytesoftware.com/blog/PermaLink,guid,45fe761f-2f83-4b87-8f99-aee2a1b40b8c.aspx

Kategorie: 
C++
Concurrency
Programowanie
  • Czytaj dalej wpis A scalable reader/writer scheme with optimistic retry
  • Blog
  • 265 odsłon

Rebase DLL

published by Kuling on ndz., 2009-06-14 18:33

http://harshdeep.wordpress.com/2007/05/14/thou-shalt-rebase-thy-dll/
http://www.codeproject.com/KB/DLL/RebaseDll.aspx
http://msdn.microsoft.com/en-us/library/ms810432.aspx
http://msdn.microsoft.com/en-us/library/bb384887.aspx

 

Kategorie: 
C++
Programowanie
  • Czytaj dalej wpis Rebase DLL
  • Blog
  • 202 odsłony

debugging custom filters for unhandled exceptions

published by Kuling on pon., 2009-06-15 21:27

http://www.debuginfo.com/articles/debugfilters.html

Kategorie: 
C++
Visual Studio 2005
Programowanie
  • Czytaj dalej wpis debugging custom filters for unhandled exceptions
  • Blog
  • 272 odsłony

Anti-convoy locks in Windows Server 2003 SP1 and Windows Vista

published by Kuling on sob., 2009-06-20 19:32

http://www.bluebytesoftware.com/blog/PermaLink,guid,e40c2675-43a3-410f-8f85-616ef7b031aa.aspx

Kategorie: 
Templates
  • Czytaj dalej wpis Anti-convoy locks in Windows Server 2003 SP1 and Windows Vista
  • Blog
  • 236 odsłon

C++, the volatile / memory barrier

published by Kuling on sob., 2009-06-20 19:59

Cytat:
The C and C++ standards do not address multiple threads (or multiple processors), and as such, the usefulness of volatile depends on the compiler and hardware. Although volatile guarantees that the reads and writes will happen in the exact order specified in the source code, the compiler may generate code which reorders a volatile read or write with non-volatile reads or writes, thus limiting its usefulness as an inter-thread flag or mutex. Moreover, you are not guaranteed that volatile reads and writes will be seen in the same order by other processors due to caching, meaning volatile variables may not even work as inter-thread flags or mutexes.

Some languages and compilers may provide sufficient facilities to implement functions which address both the compiler reordering and machine reordering issues. In Java version 1.5 (also known as version 5), the volatile keyword is now guaranteed to prevent certain hardware and compiler re-orderings, as part of the new Java Memory Model. The proposed C++ memory model does not use volatile, instead C++0x will include special atomic types and operations with semantics similar to those of volatile in the Java Memory Model.

http://en.wikipedia.org/wiki/Memory_barrier

Cytat:

The code you write is not necessarily executed in the order in which the instructions appear in the source.

Optimizing compilers, such as the Microsoft C compiler, sometimes eliminate or reorder read and write instructions if the optimizations do not break the logic of the routine being compiled. In addition, certain hardware architectures sometimes reorder read and write instructions to improve performance. Furthermore, on multiprocessor architectures, the sequence in which read and write operations are executed can appear different from the perspective of different processors.

Most of the time, reordering by the compiler or the hardware is completely invisible and has no effect on results other than generating them more efficiently. However, in a few situations, you must prevent or control reordering. The volatile keyword in C and the Windows synchronization mechanisms can ensure program order of execution in nearly all situations. In some rare instances, the executable code must contain memory barriers to prevent hardware reordering.

Complete information about compiler and hardware reordering and the use of memory barriers is now available in Multiprocessor Considerations for Kernel-Mode Drivers. This information expands on the information previously available in the paper "Memory Barriers in Kernel-Mode Drivers."

http://www.microsoft.com/whdc/driver/kernel/MPmem-barrier.mspx

Cytat:

If you look at the sample drivers shipped with the Windows DDK, you will see that volatile appears infrequently. In general, volatile is of limited use in driver code for the following reasons:
•    Using volatile prevents optimization only of the volatile variables themselves. It does not prevent optimizations of nonvolatile variables relative to volatile variables. For example, a write to a nonvolatile variable that precedes a read from a volatile variable in the source code might be moved to execute after the read.
•    Using volatile does not prevent the reordering of instructions by the processor hardware.
•    Using volatile correctly is not enough on a multiprocessor system to guarantee that all CPUs see memory accesses in the same order. 
Windows synchronization mechanisms are more useful in preventing all these potential problems.

http://download.microsoft.com/download/e/b/a/eba1050f-a31d-436b-9281-92cdfeae4b45/MP_issues.doc

Kategorie: 
C++
Concurrency
Programowanie
Visual Studio 2008
Visual Studio 2010
  • Czytaj dalej wpis C++, the volatile / memory barrier
  • Blog
  • 657 odsłon

ATI Stream Software Development Kit

published by Kuling on wt., 2009-06-23 20:40

http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx

Kategorie: 
Concurrency
Programowanie
  • Czytaj dalej wpis ATI Stream Software Development Kit
  • Blog
  • 250 odsłon

Budżet w czasach kryzysu

published by Kuling on śr., 2009-06-24 20:03

http://januszjankowiak.bblog.pl/wpis,budzet;w;czasach;kryzysu,29334.html

Kategorie: 
Pieniądze
  • Czytaj dalej wpis Budżet w czasach kryzysu
  • Blog
  • 263 odsłony

Concurrency and exceptions

published by Kuling on śr., 2009-06-24 20:50

http://www.bluebytesoftware.com/blog/2009/06/24/ConcurrencyAndExceptions.aspx

Kategorie: 
C++
Concurrency
Exceptions
Programowanie
  • Czytaj dalej wpis Concurrency and exceptions
  • Blog
  • 234 odsłony

Paradigm shift: Design Considerations For Parallel Programming

published by Kuling on ndz., 2009-06-28 12:51

Cytat:

Concurrent programming is notoriously difficult, even for experts. When logically independent requests share various resources (dictionaries, buffer pools, database connections, and so forth), the programmer must orchestrate the sharing, introducing new problems. These problems—data races, deadlocks, livelocks, and so forth—generally derive from a variety of uncertainties that arise when concurrent tasks attempt to manipulate the same data objects in a program. These problems make the basic software development tasks of testing and debugging extremely difficult [...]

Cytat:

The combination of extra concepts, new failure modes, and testing difficulty should give every developer pause. Is this something you really want to bite off? Clearly, the answer is no! However, many will be forced into this swamp in order to deliver the necessary performance. Microsoft is actively developing solutions to some of the core problems, but high-productivity solution stacks are not yet available.

Cytat:

Current multicore chip architectures are able to increase the number of cores faster than memory bandwidth, so for most problems where the data set does not fit in memory, using the memory hierarchy is an important concern. This imbalance gives rise to a style of programming called stream processing where the focus is to stage blocks of data into the on-chip cache (or perhaps private memory) and then perform as many operations against that data as possible before displacing it with the next block. Those operations may be internally parallel to use the multiple cores or they may be pipelined in a data flow style, but the key issue is to do as much work on the data in the cache while it is there.

http://msdn.microsoft.com/en-us/magazine/cc872852.aspx

 

Kategorie: 
Concurrency
Programowanie
  • Czytaj dalej wpis Paradigm shift: Design Considerations For Parallel Programming
  • Blog
  • 291 odsłon

Stopy w dół... i co dalej?

published by Kuling on pon., 2009-06-29 22:52

http://bankier.tv/video/Stopy-w-dol-i-co-dalej-43868.html

Kategorie: 
Inwestowanie
Mieszkanie
Pieniądze
  • Czytaj dalej wpis Stopy w dół... i co dalej?
  • Blog
  • 229 odsłon

Referencja do r-wartości

published by Kuling on pon., 2009-06-29 22:54

http://pl.wikipedia.org/wiki/C%2B%2B0x#Referencja_do_r-warto.C5.9Bci.2FSemantyka_przeniesienia

Kategorie: 
C++
Programowanie
Visual Studio 2010
  • Czytaj dalej wpis Referencja do r-wartości
  • Blog
  • 208 odsłon

Opinie ekonomiczne - Krajowy rynek finansowy w czerwcu

published by Kuling on wt., 2009-06-30 17:42

http://opinieekonomiczne.blox.pl/2009/06/Krajowy-rynek-finansowy-w-czerwcu.html

Kategorie: 
Pieniądze
  • Czytaj dalej wpis Opinie ekonomiczne - Krajowy rynek finansowy w czerwcu
  • Blog
  • 169 odsłon

Rvalue References: C++0x Features in VC10

published by Kuling on wt., 2009-06-30 19:41

Ogromnie polecam. Dawno nie czytałem z takimi wypiekami ;)
Na razie dotarłem do połowy, ale polecam poświęcić czas.

http://blogs.msdn.com/vcblog/archive/2009/02/03/rvalue-references-c-0x-features-in-vc10-part-2.aspx

Kategorie: 
C++
Programowanie
Templates
Visual Studio 2010
  • Czytaj dalej wpis Rvalue References: C++0x Features in VC10
  • Blog
  • 280 odsłon

Archiwum

  • luty 2012 (1)
  • Styczeń 2012 (7)
  • Grudzień 2011 (2)
  • Listopad 2011 (2)
  • Październik 2011 (2)
  • Wrzesień 2011 (3)
  • Sierpień 2011 (2)
  • Lipiec 2011 (3)
  • Czerwiec 2011 (1)
  • Kwiecień 2011 (4)
  • luty 2011 (1)
  • Styczeń 2011 (2)
  • Listopad 2010 (6)
  • Październik 2010 (5)
  • Sierpień 2010 (10)
  • Lipiec 2010 (3)
  • Czerwiec 2010 (2)
  • Maj 2010 (1)
  • Kwiecień 2010 (2)
  • luty 2010 (4)
  • Styczeń 2010 (5)
  • Grudzień 2009 (5)
  • Listopad 2009 (1)
  • Październik 2009 (4)
  • Wrzesień 2009 (6)
  • Sierpień 2009 (11)
  • Lipiec 2009 (23)
  • Czerwiec 2009 (14)
  • Maj 2009 (23)
  • Kwiecień 2009 (22)
  • Marzec 2009 (14)
  • luty 2009 (20)
  • Styczeń 2009 (14)
  • Grudzień 2008 (17)
  • Listopad 2008 (12)
  • Październik 2008 (10)
  • Wrzesień 2008 (4)
  • Lipiec 2008 (2)
  • Czerwiec 2008 (5)
  • Maj 2008 (5)
  • Kwiecień 2008 (9)
  • Marzec 2008 (9)
  • luty 2008 (30)
  • Styczeń 2008 (22)
  • Grudzień 2007 (15)
  • Listopad 2007 (19)
  • Październik 2007 (10)
  • Wrzesień 2007 (22)
  • Sierpień 2007 (21)
  • Lipiec 2007 (29)
  • Czerwiec 2007 (53)
  • Maj 2007 (61)
  • Kwiecień 2007 (14)
  • Marzec 2007 (5)
  • luty 2007 (4)
  • Styczeń 2007 (16)
  • Grudzień 2006 (69)
  • Listopad 2006 (15)
  • Wrzesień 2006 (25)
  • Sierpień 2006 (20)
  • Lipiec 2006 (10)
  • Czerwiec 2006 (10)
  • Maj 2006 (35)
  • Kwiecień 2006 (5)
  • Marzec 2006 (15)
  • luty 2006 (5)
  • Grudzień 2005 (10)
  • Listopad 2005 (15)
  • Sierpień 2005 (10)
  • Lipiec 2005 (20)
  • Czerwiec 2005 (30)
  • Maj 2005 (30)
  • Kwiecień 2005 (34)
  • Marzec 2005 (14)
  • luty 2005 (10)
  • Grudzień 2004 (30)
  • Listopad 2004 (48)
  • Październik 2004 (25)
  • Sierpień 2004 (18)
  • Lipiec 2004 (30)

Kategorie

  • Angielski (1)
    • FCE (0)
  • Dom (4)
    • Akwarium (3)
    • Kot (2)
  • Gry (11)
    • Counter Strike (8)
  • Informatyka (15)
    • Hardware (15)
      • Mój komputer (14)
    • Linux (0)
    • Programowanie (173)
      • C++ (134)
        • Concurrency (66)
        • Exceptions (14)
        • Templates (21)
      • Narzędzia (10)
        • Visual Studio 2003 (21)
        • Visual Studio 2005 (45)
        • Visual Studio 2008 (33)
        • Visual Studio 2010 (13)
      • PHP (9)
    • Windows (18)
  • Internet (10)
    • Drupal (18)
    • Linki (29)
  • Miejsca (2)
    • Poznań (3)
    • Sieradz (1)
    • Wrocław (12)
    • Zgorzelec (0)
  • Pieniądze (122)
    • Giełda (47)
    • Inwestowanie (66)
    • Mieszkanie (69)
  • Rodzina (14)
    • Magda (1)
  • Rozrywka (66)

Logowanie

  • Utwórz nowe konto
  • Prześlij nowe hasło
Theme provided by Danetsoft under GPL license from Danang Probo Sayekti