Search:

Type: Posts; User: swaugh

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    2,337

    Windows Kernel parameters

    HI Folks..
    Is there any /sbin/sysctl equivalent command in windows?

    Actually I need to find kernel parameters in windows..In unix /sbi/sysctl -a will give all the kernel parameters and their...
  2. Replies
    7
    Views
    3,490

    Maximum and Minimum Values

    Hi Guys,
    Let us do a small program. Find out the maximum and minimum values of different types in C (int, unsigned int, float, double etc). The challenging part here is that the program needs to be...
  3. Replies
    11
    Views
    10,755

    Word size of processor

    How can I find out my system word size??Can anybody tell me "C" Program to find out word size??

    Ex: if it 32 bit then should print 32-bit, if it is 64 bit should print 64-bit
  4. Replies
    15
    Views
    3,078

    Hi Beon Your Code is while(sel_case !=...

    Hi Beon

    Your Code is


    while(sel_case != 0)
    {
    if ( scanf( "%d", &sel_case ) == 1 )
    {
  5. Thread: multithreading

    by swaugh
    Replies
    4
    Views
    1,080

    Hi Friend..Thank you.. You have explain about...

    Hi Friend..Thank you..
    You have explain about context switching..if it is a single processor then your words are absolutely correct...what about in case of multi processor system...You can achieve...
  6. Replies
    18
    Views
    50,374

    Little Endian means that the lower order byte of...

    Little Endian means that the lower order byte of the number is stored in memory at the lowest address, and the higher order byte is stored at the highest address. That is, the little end comes first....
  7. Replies
    18
    Views
    50,374

    Try this code to find out your processor is big...

    Try this code to find out your processor is big or small endian



    main()
    {
    int num = 1;
    if(*(char *)&num == 1)
    {
    printf("\nLittle-Endian\n");
  8. Thread: multithreading

    by swaugh
    Replies
    4
    Views
    1,080

    multithreading

    Hi All,
    what is the use of multithreading in a single processor(cpu) machine??
  9. Replies
    18
    Views
    50,374

    Big Endian & Little Endian

    Hi Guys,
    How to find out the given processor is a big endian or small endian.??
  10. Replies
    2
    Views
    2,507

    There are many IPC mechanisms available In your...

    There are many IPC mechanisms available
    In your case if client and server are running same machine
    then you can choose one of the IPC mechanism from the following
    1.Pipes
    2.shared memory (same...
  11. Replies
    2
    Views
    11,441

    If you create n semaphores then You have...

    If you create n semaphores then You have sem_numbers 0 to n-1.
    And in semaphore wait you called sem_op=-1
    Initially when creates semaphores its value is initialized to 0
    and you are decreamenting...
  12. Replies
    2
    Views
    2,292

    how to terminate a target thread

    HI ALL,
    my main program created one pthread.which is running infinite loop.
    when i want to terminate remote thraed i used pthread_cancel .
    But some time it may not cancelling the remote thread.....
  13. Replies
    9
    Views
    5,398

    u can try this code it will work for u r case ...

    u can try this code it will work for u r case



    void deleteLine(int id)
    {
    char contents[500]="\0",buffer[500]="\0";
    int i=1,;
    ifstream file("file.txt");
  14. Thread: configure Pine

    by swaugh
    Replies
    2
    Views
    1,412

    configure Pine

    hi guys,

    i am working in solaris 5.9.i have some problem in my windows mail system.how we can configure pine so that complete my mails come to my system , my mail server is a windows server(ip...
  15. Replies
    8
    Views
    1,591

    simple c question

    i have one set of numbers many numbers start with '1' and start with '2' and start with '3'. i seperate these numbers how i identified which numbers start with '1','2' and '3'?
  16. Replies
    2
    Views
    3,769

    encapsulation in c

    hi all
    i am newbie in c++. can we implement same encapsulation in c?
    may be my answer is yes.if we try using static variables it can be possible please somebody help me
  17. Replies
    2
    Views
    1,299

    simple rpc programm

    hi all
    can anybody help me
    1) how to process say client and server sending messages using RPC(remote procedure call) if message size is 50 byte
    code should be in cpluplus
    thanks
  18. Replies
    2
    Views
    2,657

    problem in gethostbyname

    hi guys,
    i am newbie of socket programming working on solaries sysetm.


    #include<stdio.h>
    #include<stdlib.h>
    #include<sys/types.h>
    #include<sys/socket.h>
    #include <netinet/in.h>
    #include...
  19. Replies
    4
    Views
    960

    trouble with objects

    this is the code

    #include <iostream.h>
    #include <iomanip.h>

    //class declaration

    class Time
    {
    private:
Results 1 to 19 of 20