/[livstidsfanger]/trunk/livstidsfanger.c
ViewVC logotype

Log of /trunk/livstidsfanger.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 13 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-09T15:15:31Z (9 years, 4 months ago) by trond
File length: 6744 byte(s)
Diff to previous 12
Det er bedre å referere til 2001-versjonen.


Revision 12 - (view) (download) (annotate) - [selected]
Modified 2014-11-08T12:40:52Z (9 years, 4 months ago) by trond
File length: 6744 byte(s)
Diff to previous 11
Brukte argc til noe, bare for å få clang til å ti stille.
La til utskrift av antall livstidsfanger talt av den tellende livstidsfangen.


Revision 11 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-08T11:56:59Z (9 years, 4 months ago) by trond
File length: 6426 byte(s)
Diff to previous 10 , to selected 12
Endret fflush()-kallene.


Revision 10 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-07T13:50:02Z (9 years, 4 months ago) by trond
File length: 6417 byte(s)
Diff to previous 9 , to selected 12
Det er en fordel at vi ikke setter i gang atexit()-registrerte
funksjoner når vi får problemer med pthread_create() og må avslutte.


Revision 9 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-07T12:40:00Z (9 years, 4 months ago) by trond
File length: 6416 byte(s)
Diff to previous 8 , to selected 12
Gjorde koden litt mer portabel, siden srandomdev() stort sett bare
finnes i FreeBSD, mens andre OS har kanskje srandom() for å plante et
frø i tallgeneratoren.


Revision 8 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-07T09:29:54Z (9 years, 4 months ago) by trond
File length: 6329 byte(s)
Diff to previous 7 , to selected 12
Retta en slurvefeil som ble oversett ved omlegging til stdbool.h og bool.


Revision 7 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-07T08:56:07Z (9 years, 4 months ago) by trond
File length: 6327 byte(s)
Diff to previous 6 , to selected 12
Dytta inn beskrivelser av tilstanden i forkant og etterkant av simuleringen.


Revision 6 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-07T08:09:43Z (9 years, 4 months ago) by trond
File length: 5799 byte(s)
Diff to previous 5 , to selected 12
Det er mer riktig å si at jeg har programmert løsningen som andre har tenkt ut.


Revision 5 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-07T08:04:18Z (9 years, 4 months ago) by trond
File length: 5793 byte(s)
Diff to previous 4 , to selected 12
Byttet fra unsigned til stdbool.h og bool.


Revision 4 - (view) (download) (annotate) - [select for diffs]
Modified 2014-11-07T07:56:17Z (9 years, 4 months ago) by trond
File length: 5747 byte(s)
Diff to previous 3 , to selected 12
Gjorde om litt whitespace.
Initialiserer tid med pthread_self() bare for å få clang til å ti stille.
Livstidsfangene trenger ikke å signalere noen som helst.
signalhandler() kan kalle på exit() istedet for _exit(), og la alle funksjoner registrert med atexit() bli kjørt.
Fjernet noen skjønnhetsfeil.


Revision 3 - (view) (download) (annotate) - [select for diffs]
Added 2014-11-07T07:51:12Z (9 years, 4 months ago) by trond
File length: 6035 byte(s)
Diff to selected 12
Inn med trunk/BSDmakefile og trunk/livstidsfanger.c.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

svn@ximalas.info
ViewVC Help
Powered by ViewVC 1.3.0-dev