How to get context of another thread in the same process
getcontext() gives you the context of the calling thread. Is there any way to get the context of a different thread?
Meng
Every statement that writes to the log must be synchronized so that writing of multiple applications doens't cause a deadlock !!
Similar Messages
-
Communication between thread in the same process using file interface.
Hi,
I am developing driver and i need to communicate between two thread.
>can anyone guide me on implementing communication between two thread in the same process using File Interface. First thread will be driver and second will be application.I need to send IOCTL like commands using File interface ie is WriteFile(),ReadFile()
from Host process to driver through file-interface(which run's in driver context).Host process should not be blocked for the duration of the driver to process the command.
>File-interface will run in driver context and it will be responsible to receive command from application and pass it to the driver.
what are the complexity introduced?
>Can anyone also give me the link/reference to get more information on this topic?
>How to replace IOCTL command's for instance baud _rate change command with a file interface for example with IRP.Here is the detailed query:
Hardware Abstraction Layer will interact with Driver(Both will be running in complete different process) .there is a IOCTL for command and File interface for read and write.
My requirement is:
Both should run in the same process so HAL will run as one thread and driver as another thread in the same process .I don't want HAL to wait for completion of request and also i don't want driver to be blocked .
We are planning to use a File Interface for communication between Hardware abstraction layer and Driver
HAL will send the command or read/write operation to a file interface and driver will get the command or read/write request from the File interface
There is a flexibility to change Hardware Abstraction layer and also the Driver
Is it possible to use IOCTL between two thread under same process? if not what other options do we have.
Can we use File interface to send command (like IOCTL) between two thread? -
How do I link to another page in the same iBook?
I am trying to link from within the text of my book to another page in the same iBook. How do I do that in iBooks Author?
For example...
The text on page 1 might read.... "If you'd like to jump to the page on herbivores, click here". And that text would be linked to page 49, which is about herbivored.
Any ideas? Greatly appreciated!!It looks like I figured this out by playing around with it.
The reason that I couldn't bookmark the text earlier is that I had created a text box and entered text in there. When you create a text box, that text is not recognized by the bookmark widget. However when you type directly into the page template itself, it recognizes the text just fine. I'm able to set bookmarks and then link to those bookmarks using the hyperlink featuer. Looks like it's solved, I was just trying to use the wrong tool for text entering.
Thanks for your help Don, you've been great! -
How to get a form to appear on the same page when a button is clicked?
Hi,
I have a report on a page with a create button. When a user clicks the create button, a form should appear on another region in the same page....how do i go about doing this?
I know how to do this if the form is on a different page, but i'd like the form to appear on the same page as the report and only when the button is clicked.
Thanks.Hi,
I did the following, but it didnt work....
1) Created a hidden item on the page, and in the Default Value field, I set the value to N.
2) Created a button in the report with the following values under "Optional URL Redirect":
Target is a: Page in this application
Page: 4
Set these items: P1_SHOW_FORM
With these values: Y
3) Created a form of HTML text type with the following values under "Conditional Display":
Condition Type: Request=Expression 1
Expression 1: P1_SHOW_FORM='Y'
What have I done wrong or have i missed something?
Thanks. -
How to get data from another view on the RFx to populate bidders web dynpro
i am trying to populate bidders in the table on the bidder tab when a user click a button based on the line item data. How do i have access to get the line item since it is in a separate component controller and view for the RFx? thanks you.
Hi,
You mean Data transfer between two components..
To pass the value from one component to other component, you can use used component scenario.
For example let use assume we have two comp ..
Comp A,
Comp B.
now we need to pass the value from Comp A to Comp B.
Then declare the Comp A as used component in Comp B.
Now then you can create a node in the comp A component controller and check the interface check box there then the
node and the attribute will be present in the interface controller also .
and this interface controller context you can access in the component and map it to view there and display it.
Webdynpro Application Integration..
http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
cheers,
Kris. -
Getting error while another component to the same project
I am getting the following error while including another component (JSPDynPage) in the same project. Its scope is request. If there is some .jar file to export kindly tell its path also.
Error:The project was not built since its classpath is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the classpath then try rebuilding this project. TryProjectHello Shilpa,
The required jar file is <b>servlet.jar</b>, this is present on your server under
usrsap<ID><INST>j2eecluster<NODE> in/ext/servlet/servlet.jar
So adding this to your classpath, should solve the problem.
Check this to know, how to set classpath:
Getting API:s for DevStudio
Greetings,
Praveen Gudapati
p.s. Points are always welcome for helpful answers -
How to get most recent consecutive records with the same value
Hi,
Can someone please help me to solve my problem?
Below is my table
Prod_Code-----Purchase_date---Inv_number-------Inv_amt
MS_AV16850------18/01/2005-----------6575947----------------7.93
MS_AV16850------22/07/2005-----------7034012----------------51.82
MS_AV16850------04/01/2006-----------8719618----------------51.82
MS_AV16850------20/06/2006-----------9515864----------------104.69
MS_AV16850------16/04/2007-----------10353759----------------189.29
MS_AV16850------30/05/2007-----------10689899----------------189.29
MS_AV16850------06/01/2008-----------1653821----------------65.49
MS_AV16850------22/02/2009-----------10866311----------------189.29
I want my query to show the rows that has most recent purchase dates with same amount in consecutive purchase date.
So from the table above, the query should display:
Prod_Code-----Purchase_date---Inv_number-------Inv_amt
MS_AV16850------16/04/2007-----------10353759----------------189.29
MS_AV16850------30/05/2007-----------10689899----------------189.29
It should not get
MS_AV16850------16/04/2007-----------10353759----------------189.29
MS_AV16850------30/05/2007-----------10689899----------------189.29
MS_AV16850------22/02/2009-----------10866311----------------189.29
because inv_number 10866311 has a prvevious inv_amount of 65.49.
and not get this
MS_AV16850------22/07/2005-----------7034012----------------51.82
MS_AV16850------04/01/2006-----------8719618----------------51.82
because they are not the most recent purchase date even if they have the same inv_amount.
Thanks in advance.Hi,
You're right; thanks for catching my mistake.
I changed the WHERE clause of the main query (including subquery there) to deal with that situation:
WITH got_grp AS
SELECT x.*
, ROW_NUMBER () OVER ( ORDER BY purchase_date )
- ROW_NUMBER () OVER ( PARTITION BY inv_amt
ORDER BY purchase_date ) AS grp
-- , ROW_NUMBER () OVER ( ORDER BY purchase_date ) AS r1
-- , ROW_NUMBER () OVER ( PARTITION BY inv_amt
-- ORDER BY purchase_date ) AS r2
FROM table_x x
SELECT * -- Or list all columns except grp
FROM got_grp
WHERE (inv_amt, grp) IN (
SELECT MAX (inv_amt) KEEP (DENSE_RANK LAST ORDER BY MAX (purchase_date))
, MAX (MAX (grp))
FROM got_grp
GROUP BY grp
, inv_amt
HAVING COUNT (*) > 1
;Thanks, too, for posting the sample data. Apparantly, you're more interested in solving this problem than OP is.
Edited by: Frank Kulash on Nov 22, 2010 1:36 PM
The r1 and r2 columns are not needed for the solution. You may want to display them, just to help see how the query works. -
After using the Word in ICloud and creating a new project named recipes then putting a recipe in now I don't know how to add a new page with another recipe and save it to the same project the first one is in. I don't see any icon that will save?
Arlene83 wrote:
After using the Word in ICloud
There is no version of the Microsoft Word app available for iPad. What exactly do you mean here? What app are you talking about? And what is the tie-in to iCloud? -
How to get BufferedImage to treat zero in the same way as MemoryImageSource
Hi!
I was wondering if there is a way for BufferedImage to treat the value zero, i.e. 0, the same way as MemoryImageSource. After some testing I have found out that if the integer array that is used by MemoryImageSource contains a zero pixel value, it is treated as no value and the given background color to drawImage is used. When using BufferedImage, with type TYPE_INT_RGB, the zero value is treated as black.
The problem is that I need to replace my MemoryImageSource instance with a BufferedImage to handle dynamic update better and I do not want to redesign the whole pixel array. Is there a way to get BufferedImage to treat 0 value pixels the same way as MemoryImageSource, i.e. treat them as no value and use the background color.
Would really appreciate some help!
Best regards
LarsHave you tried using an ARGB image type instead of RGB? Then you can set the alpha of pixels you want to be transparent to zero.
-
Any help you can give me will be most appreciated. Terry
Your saved book will show as a Book Collection in your collections panel. Open the collection with the other photos, select the desired photos in Grid view and drag them into the Book collection.
-
How does a method extend another method in the same class ??
hi everybody, I want to know if it is possible to have such code as:
void foo(){
// foo process
void bar <<extend>> foo{
//foo process
//bar process
thanks for helping meSince you want different names for each of your so-called "child" methods, then neither overloading nor overriding in a subclass will work as each relies on the same method names. Perhaps the following will suffice:
public class MyClass
//some stuff
private myMethodThatDoesSomeStuff()
//do some stuff that all the other methods must also do
private methodA(int q, byte z)
myMethodThatDoesSomeStuff();
// continue with this method.
private methodL(short v, float g23)
myMethodThatDoesSomeStuff();
// continue with this method.
}If not, you need to do some design work. -
I just got a new CD I would like to import. Recently my laptop has been malfunctioning so I can't import it there, so I have to import it on our family's main computer. When I try to import the CD, it'll get maybe a minute of the first song, then get maybe a second or two of the next couple, then get half of another, and repeat the same thing.
How can I fix this?
Please, it is getting on my nerves. I have updated the Itunes and fixed what I was told to do but it still does it.
What do I do?You're not alone, but for me, it doesn't happen very often. Maybe one in fifty. Sometimes it will read after multiple tries, but a few (two of the three Shins CDs) never work. This was a common problem two years ago when I first got my iMac (many discussions but no answers). I'll keep looking and I'll let you know if I find something.
-
Navigate to another application in the same window
How can I navigate to another application in the same window? I know how to open in a new browser.
Also, I cannot give a linktourl UI. I have to do it on click of a button.
I can get the URL. How to go there now?
Thanks in adv.Hi Shweta,
You can get a URL to a webdynpro application and also navigate to it. I used below code snippet,
METHOD onactionclick .
* Data Declarations
DATA:
lr_ref TYPE REF TO ig_ZWDA_APP1,
str TYPE string.
*Get the URL of the Application
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZWDA_APP2'
IMPORTING
out_absolute_url = str.
*Reference of Window
lr_ref = wd_this->get_ZWDA_APP1_ctr( ).
* Fire Exit Plug
lr_ref->fire_go_exit_plg(
url = str
ENDMETHOD.
u can modify it so that ur current application is not closed or that new application gets launched in seperate browser window.
Greetings
Prashant -
I tried to download a movie on my iPod touch but due to limited space, it did not download. Then, I checked my credit card online, and I found the money was already taken. How will I get it to download on another device with the same account? Also, I was wondering why they took my money even when it did not finish downloading let alone get downloaded?
Welcome to the Apple Community.
You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option which is revealed in the iTunes app on your iOS device by tapping the more button at the bottom of the screen. -
How do I move Contacts & Calendar from one User to another User on the same Macbook Pro?
How do I move Contacts & Calendar from one User to another User on the same Macbook Pro? OSX 10.9.5
is this second library in a different account on the computer?
Look at Home Sharing.
iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
Home Sharing Support page - http://www.apple.com/support/homesharing/
iTunes: Setting up Home Sharing on your computer - http://support.apple.com/kb/HT4620
iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597
Maybe you are looking for
-
Selected pdf in browser turns blue
We just installed Reader 9 and an issue has been reported when viewing pdfs in a browser window. When you click on a page of the pdf, it turns blue letting you know the focus is on that page. When you click on a different page, that page turns blue
-
NEW FOLDER, for word processing, like Page and others?
We're with a new IMac & iWork. We want to start a folder for docs if not also templates. It is for a word processing folder under Page, iWork and new Mac OSX.
-
I have a new 15" PowerBook. The DVD player is not working. I get the following message pop up: There was an initialization error Error: -43 Apple support say it is a software error and that I should wipe everything and reload. I don't really want to
-
How to install windows 7 to my 15-d041tu notebook
how to install windows 7 to my 15-d041tu notebook
-
I had Photoshop Elements 11 installed on my computer in April 2013. My computer crashed and I lost it. Is there a link where I can re-install the program? I purchased on the Adobe site. Can anyone help me please? Thanks in advance!