Platform/IPC
-
동기화 - 자바Platform/IPC 2016. 7. 24. 16:57
java.util.Queue.offer().remove() java.util.concurrent.BlockingQueue -> extends Queuesynchronized queue .put().take() java.util.concurrent.LinkedBlockingQueue implements BlockingQueue // Unlimited size java.util.concurrent.ArrayBlockingQueue implements BlockingQueue // Fixed size java.util.concurrent.SynchronousQueue implements BlockingQueue // Size of 1
-
클립보드 - C#Platform/IPC 2014. 10. 17. 23:22
System.Windows.Forms.IDataObject.GetDataPresent().GetData() System.Windows.Forms.DataObject -> System.Windows.Forms.IDataObject.SetData() System.Windows.Forms.Clipboard.SetDataObject().GetDataObject() // IDataObject-System.Windows.Forms.DragEventArgs -> System.EventArgs.Data // IDataObject.KeyState System.Windows.Forms.Control -> System.ComponentModel.Componenton DragDrop // DragEventHandleron D..
-
-
AjaxPlatform/IPC 2013. 10. 19. 12:59
XMLHttpRequestonreadystatechange .readyState.responseText .open().setRequestHeader().send() function getHTTPObject() {if (window.ActiveXObject) {var waystation = new ActiveXObject("Microsoft.XMLHTTP");} else if (window.XMLHttpRequest) {var waystation = new XMLHttpRequest();} else {var waystation = false;} return waystation;} request = getHTTPObject();request.open("GET", "example.txt", true);requ..
-
클립보드 - 자바Platform/IPC 2013. 8. 18. 13:44
JTextFieldJTextArea 자바 1.2는 끌어서-놓기(Drag-and-Drop) 기능을 추가c.f. 잘라내서-붙여넣기 java.util.EventObject.getSource()java.awt.dnd.DragGestureEvent -> java.util.EventObject.startDrag()java.awt.dnd.DragSourceListener java.awt.datatransfer.DataFlavor.stringFlavor.plainTextFlavor .equals()java.awt.datatransfer.Transferable // 인터페이스DataFlavor[] getTransferDataFlavors();boolean isDataFlavorSupported(DataFlavor fla..
-
동기화 - MFCPlatform/IPC 2011. 6. 16. 22:47
CCriticalSection .Lock() .Unlock() CEvent .Lock() .SetEvent() .PulseEvent() .. //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. // #endif // !defined(AFX_STDAFX_H__FDE11EDF_10C2_45B7_9039_DC9CE6E9CA6F__INCLUDED_) int g_nData[10][10]; int g_nHead = 0; int g_nTail = 0; int g_nCount = 0; CCriticalSection g_cs..
-
동기화 - Win32Platform/IPC 2009. 2. 14. 22:05
race condition 자원을 공유시 경쟁 상황 교착 상태 두 개 이상의 동기화 오브젝트들을 획득시 발생 // ??? 회피 방법 시도하고 물러나기(try and back off) 모든 스레드들이 동일한 순서로 동기화 오브젝트들을 얻고 그 반대 순서로 해제 WaitForMultipleObjects() 다른 스레드(프로세스)의 종료를 대기 WaitForSingleObject() WaitForMultipleObjects() MAXIMUM_WAIT_OBJECTS c.f. WaitForInputIdle() int _tmain (DWORD argc, LPTSTR argv []) /* Create a separate process to search each file on the command line. Each ..